Skip to main content

Home/ Groups/ foograde
Fernando Vega

Free Icons Download - Icons,Free Icons,Stock Icons,Vista Icons,Desktop Icons - 1 views

  •  
    Iconos gratis para aplicaciones
  •  
    Iconos gratis para aplicaciones web
Adán Muguiro

sfWidgetFormJQueryAutocompleter - 2 views

  •  
    Utilizando el widget de autocompletado
Fernando Vega

Doctrine - Doctrine ORM for PHP - Behaviors - 0 views

  • $newsItem = new NewsItem(); $newsItem->Translation['en']->title = 'some title'; $newsItem->Translation['en']->body = 'test'; $newsItem->Translation['fi']->title = 'joku otsikko'; $newsItem->Translation['fi']->body = 'test'; $newsItem->save();
    • Fernando Vega
       
      guardar un registri i18n con doctrine
Adán Muguiro

Doctrine NestedSet - 0 views

  • $treeObject = Doctrine_Core::getTable('Category')->getTree(); $rootColumnName = $treeObject->getAttribute('rootColumnName'); foreach ($treeObject->fetchRoots() as $root) { $options = array( 'root_id' => $root->$rootColumnName ); foreach($treeObject->fetchTree($options) as $node) { echo str_repeat(' ', $node['level']) . $node['name'] . "\n"; } }
    • Fernando Vega
       
      fetch para deplegar nodos padres e hijos con doctrine
  • First lets create the query we want to use to retrieve our tree data with: // test.php // ... $q = Doctrine_Query::create() ->select('c.name, p.name, m.name') ->from('Category c') ->leftJoin('c.HottestProduct p') ->leftJoin('p.Manufacturer m'); Now we need to set the above query as the base query for the tree: $treeObject = Doctrine_Core::getTable('Category')->getTree(); $treeObject->setBaseQuery($q); $tree = $treeObject->fetchTree(); There it is, the tree with all the related data you need, all in one query.
  •  
    Agregar una subconsulta a un objeto NestedSet
Fernando Vega

Crear minuaturas por medio de una ruta - 1 views

public function configure() { $file_src = sfContext::getInstance()->getController()->genUrl(array( 'sf_route' => 'sf_image', 'format' => 'backend_edit', 'filepath' => '/ba...

started by Fernando Vega on 20 Oct 10 no follow-up yet
Fernando Vega

Import sql dump file to mysql database - 0 views

  •  
    Respaldos directos de mysql
Fernando Vega

ifwebstudio blog » Blog Archive » Calculate image aspect ratio in PHP - PHP, ... - 1 views

  •  
    Calcular la proporcion o aspect ratio de imagenes
Fernando Vega

Comparing route to current request in Symfony - Stack Overflow - 0 views

  • sfContext::getInstance()->getRouting()->getCurrentRouteName();
    • Fernando Vega
       
      nombre de la ruta
federico balderas

Symfony - Delete and reload all database records for each test - Stack Overflow - 0 views

  •  
    "$doctrine = new sfDoctrineDropDbTask($configuration->getEventDispatcher(), new sfAnsiColorFormatter()); $doctrine->run(array(), array("--no-confirmation","--env=test")); $doctrine = new sfDoctrineBuildDbTask($configuration->getEventDispatcher(), new sfAnsiColorFormatter()); $doctrine->run(array(), array("--env=test")); $doctrine = new sfDoctrineInsertSqlTask($configuration->getEventDispatcher(), new sfAnsiColorFormatter()); $doctrine->run(array(), array("--env=test"));"
federico balderas

Symfony - Doctrine - Saving Many-To-Many (M:M) relationships | Me Like Dev - 0 views

  •  
    "01 Author: 02 tableName: author 03 columns: 04 ... 05 relations: 06 Book: 07 class: Book 08 refClass: LinkingAuthorBook #This will allow you to reference Book rows from an Author object 09 local: author_id #Local value refers to the current object, in this case Author 10 foreign: book_id #Foreign value refers to the object you wish to link to from Author, in this case Book 11 Book: 12 tableName: book 13 columns: 14 ... 15 relations: 16 Author: 17 class: Author 18 refClass: LinkingAuthorBook #This will allow you to reference Author rows from a Book object 19 local: book_id #Local value refers to the current object, in this case Author 20 foreign: author_id #Foreign value refers to the object you wish to link to from Book, in this case Author"
‹ Previous 21 - 40 of 87 Next › Last »
Showing 20 items per page