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
| <?php | |
| ... | |
| protected function get_file_name($name, $type, $index, $content_range) { | |
| $name = $this->udate('YmdHisu').$name; | |
| return $this->get_unique_filename( | |
| $this->trim_file_name($name, $type, $index, $content_range), | |
| $type, | |
| $index, |
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
| $('#fileupload').on('fileuploaddone', function(e, data) { | |
| //console.debug(data); | |
| $.each(data.result, function (index, file) { | |
| console.debug(file); | |
| var datos = file[0]; | |
| $.ajax({ | |
| type: "POST", | |
| dataType: "html", | |
| data: datos, | |
| url: "file.php", |
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
| var dialog = []; | |
| dialog['error'] = 'errorDialogBox'; | |
| dialog['exito'] = 'successDialogBox'; | |
| dialog['alerta'] = 'alertDialogBox'; | |
| function displayHtmlInDivId(divResult, dataHtml, conEfecto){ | |
| if(conEfecto){ | |
| $("#"+divResult).html("").html(dataHtml).fadeIn(); | |
| }else{ | |
| $("#"+divResult).html("").html(dataHtml); |
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
| <?php | |
| class Conecction { | |
| protected static $db_name = 'MyDataBase'; | |
| protected static $user = 'MyUser'; | |
| protected static $passw = ''; |
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> | |
| <title>Pure CSS Scrollable Table with Fixed Header</title> | |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> | |
| <meta http-equiv="language" content="en-us" /> | |
| <script type="text/javascript"> | |
| <!-- | |
| /* http://www.alistapart.com/articles/zebratables/ */ | |
| function removeClassName (elem, className) { | |
| elem.className = elem.className.replace(className, "").trim(); |
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
| <VirtualHost *:80> | |
| ServerName sgc | |
| ServerAlias sgc sgc.dev sgc.com.ve | |
| SetEnv SYMFONY__DATABASE__USER "postgres" | |
| SetEnv SYMFONY__DATABASE__PASSWORD "postgres" | |
| DocumentRoot "/var/www/sgc/web" | |
| DirectoryIndex app.php |
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
| <?php | |
| abstract class BaseModelManager { | |
| protected $em; | |
| protected $class; | |
| protected $repository; | |
| protected $container; | |
| /** | |
| * Constructor. |
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
| # Este comando funciona para descargar una versión de Symfony2 (2.1.3) y crear un proyecto con el framework. Descarga todos los vendors preconfigurados. | |
| composer create-project symfony/framework-standard-edition myproject/ 2.1.3 | |
| # Este comando permite generar un nuevo bundle dentro del proyecto symfony2 | |
| php app/console generate:bundle --namespace=Sgi/CommonBundle --format=yml | |
| # Este comando permite que la función assets vincule correctamente los recursos | |
| php app/console assets:install web | |
| # comando que permite limpiar la caché |
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
| <VirtualHost *:80> | |
| ServerName sgc | |
| ServerAlias sgc sgc.dev sgc.com.ve | |
| SetEnv SYMFONY__DATABASE__USER "postgres" | |
| SetEnv SYMFONY__DATABASE__PASSWORD "postgres" | |
| DocumentRoot "/var/www/sgc/web" | |
| DirectoryIndex app.php |
OlderNewer