This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // in action of symfony 1.x | |
| $default = 'some_module/some_action'; | |
| $referer = $request->getReferer(); | |
| $this->redirect($referer ? $referer : $default); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ git config --global color.ui "auto" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| foreach ($pager->getResults(Doctrine::HYDRATE_ARRAY) as $r) | |
| { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sfContext::getInstance()->getConfiguration()->loadHelpers('Debug','Other1','Other2'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # evitar errores deprecated en symfony 1.1 en php 5.3 | |
| dev: | |
| .settings: | |
| error_reporting: <?php echo ((E_ALL | E_STRICT) & ~E_DEPRECATED)."\n" ?> | |
| #error_reporting: <?php echo (E_ALL | E_STRICT)."\n" ?> | |
| web_debug: on | |
| cache: off | |
| no_script_name: off | |
| etag: off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cuando al hacer un: | |
| $ ./symfony propel:build-model | |
| en sf1.1 da: | |
| PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home/vhosts/pucp-labs/sfn/lib/symfony/util/sfToolkit.class.php on line 191 | |
| En el php.ini de CLI poner: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ' http://www.codetoad.com/forum/15_25108.asp | |
| Dim name As String = System.Net.Dns.GetHostName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ' http://stackoverflow.com/questions/223317/httpcontext-on-instances-of-controllers-are-null-in-asp-net-mvc | |
| Dim context As HttpContextWrapper = New HttpContextWrapper(Web.HttpContext.Current) | |
| Return CType(context, HttpContextBase) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ sudo mkdir symfony | |
| $ sudo chmod 777 symfony/ | |
| $ cd symfony/ | |
| $ git clone http://github.com/symfony/symfony.git sf2/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ sudo gedit /etc/php5/cgi/php.ini |
OlderNewer