Skip to main content

Home/ foograde/ Contents contributed and discussions participated by Fernando Vega

Contents contributed and discussions participated by Fernando Vega

Fernando Vega

Dribbble - What are you working on? - 0 views

  •  
    Chequense esta es la madre de las ideas para proyectos web
Fernando Vega

Copiar imagen de un servidor a otro. - Foros del Web - 0 views

  • function recibe_imagen ($url_origen,$archivo_destino){  $mi_curl = curl_init ($url_origen);  $fs_archivo = fopen ($archivo_destino, "w");  curl_setopt ($mi_curl, CURLOPT_FILE, $fs_archivo);  curl_setopt ($mi_curl, CURLOPT_HEADER, 0);  curl_exec ($mi_curl);  curl_close ($mi_curl);  fclose ($fs_archivo);  } 
    • Fernando Vega
       
      Guardar imagenes de Google Chart URL GET
Fernando Vega

The Definitive Guide to symfony | Chapter 9 - Links And The Routing System | symfony | ... - 0 views

  • prod: .settings no_script_name: off
    • Fernando Vega
       
      para eliminar el nombre del controlador en lo enlaces
Fernando Vega

Establecer filtros en accion de forma manual, $this->setFilters() - 1 views

started by Fernando Vega on 17 Feb 11 no follow-up yet
  • Fernando Vega
     
    Si se recibe un parametro por get desde una acción o metodo se puede establecer el filtro simplemente mandando una array con el nombre del campo y el valor a establecer.

    if($this->getRequestParameter('album_id'))
    $this->setFilters(array('album_id'=> $this->getRequestParameter('album_id')));
Fernando Vega

symfony framework forum: symfony 1.3 and 1.4 => Admin generator, filters and I18n - 1 views

  •  
    "class MenuFormFilter extends BaseMenuFormFilter { private $rootAlias; public function configure() { $this->widgetSchema['title'] = new sfWidgetFormFilterInput(array('with_empty' => false)); $this->validatorSchema['title'] = new sfValidatorPass(array('required' => false)); $this->widgetSchema['type'] = new sfWidgetFormChoice(array( 'choices' => Doctrine_Core::getTable('Menu')->getTypes(), 'expanded' => false, )); $this->validatorSchema['type'] = new sfValidatorChoice(array( 'choices' => array_keys(Doctrine_Core::getTable('Menu')->getTypes()), )); } public function addTitleColumnQuery(Doctrine_Query $q, $field, $values) { if (is_array($values) && isset($values['text']) && '' != $values['text']) { $this->JoinTable($q); $q->andWhere('t.title like ?', '%' . str_replace(" ","%",$values['text']) . '%'); } } public function addTypeColumnQuery(Doctrine_Query $q, $field, $values){ if (isset($values) && '%' != $values) { $this->JoinTable($q); $q->andWhere('t.type = ?', $values); } } private function JoinTable(Doctrine_Query $q){ if(empty($this->rootAlias)){ $request = sfContext::getInstance()->getRequest(); $this->rootAlias = $q->getRootAlias(); $q->leftJoin($this->rootAlias.'.Translation t') ->andWhere('t.lang = ?', $request->getParameter('sf_culture', 'ro')); // or it will search in all of them } } public function getFields(){ return parent::getFields() + array('type' => 'Text') + array('title' => 'Text'); } } "
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
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
Fernando Vega

Crear minuaturas por medio de una ruta - 1 views

started by Fernando Vega on 20 Oct 10 no follow-up yet
  • Fernando Vega
     
    public function configure()
    {
    $file_src = sfContext::getInstance()->getController()->genUrl(array(
    'sf_route' => 'sf_image',
    'format' => 'backend_edit',
    'filepath' => '/barfoo/'.$this->getObject()->file
    ), false);
    $this->widgetSchema['file'] = new sfWidgetFormInputFileEditable(array(
    'label' => 'Image',
    'is_image' => true,
    'file_src' => $file_src
    ));
    $this->validatorSchema['file'] = new sfValidatorFile(array(
    'required' => false,
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
1 - 20 of 42 Next › Last »
Showing 20 items per page