Re: Looking for an experienced CakePHP developer

2016-03-23 Thread Fabian Olmos
Hi, I can help you El 23/3/2016 16:28, "majna" escribió: > Hi, > > I'm looking for an experienced CakePHP 2.x developer, freelance, remote, > long-term. > Please LMK if you know somebody. > > Thanks! > majna > > -- > Sign up for our Newsletter for updates. > http://cakephp.org/newsletter/signup

Find and HABTM

2013-10-15 Thread Fabian Olmos
Hi, now I'm trying to retrieve data using find function like this $this->Evento->Behaviors->load('Containable'); $this->Evento->recursive = -1; debug($this->Evento->find('all', array('conditions' => array('Evento.id'=>$this->Convert->decode($evento_id)), 'contain' =>array( 'Caracteristica'=>array

Pagination with hasMany association

2009-10-21 Thread Fabian
I have two table: Contestant and Votes Contestant hasMany Votes I've tried doing a count(Vote.id) as Votes so I can place it on the recordset and just paginate them but I have no idea where to place it. I did it on the fields array but it give me the total count of votes regardless of the contes

Re: Posts and Votes total, hasOne + COUNT relation?

2009-10-20 Thread Fabian
Yeah I'm trying to do the same thing. If you find a solution please post it thanks. On Oct 7, 1:40 pm, fael wrote: > Hello > I'm coding this reddit-like clone and so far, so good, just I want to > show how many ups and how many downs are by post in the index. > Something like this: > Up (20) | D

SUBQUERY Question

2009-04-28 Thread Fabian
ser.verse_id LIMIT 10 the subquery only searches users_verses for user 1 and in left joining the verses table some of the ten verses will have the user assigned to it and some are simply nulled. how can I get the same effect with cakephp? THANK YOU so much for you help Fabian --~--~-~-

Re: CakePHP and Forum software

2009-04-02 Thread Fabian
I haven't tried it myself. http://bakery.cakephp.org/articles/view/phpbb3-api-bridge On Mar 27, 3:24 pm, Miles J wrote: > Forums are extremely easy to make, its only the following tables: > > forums, forum categories, threads and posts > > I mean, CakePHP already has security and auth and every

User logouts after actions

2009-01-09 Thread Fabian
Hi I have been using the Auth component to create a user login. At first it worked great but recently (as in today) when the user logins in all is well but when he tries to navigate between the pagination links or tries to use the search option I created, the page redirects him to the login page a

Re: auth->allow index

2008-05-09 Thread Fabian
oreFilter(){ $this->Auth->allow('index'); } But thanks for all the help On May 9, 5:44 pm, Fabian <[EMAIL PROTECTED]> wrote: > ok I think I found out what the problem was. I was calling a component > on the controller I was testing so it was

Re: auth->allow index

2008-05-09 Thread Fabian
ok I think I found out what the problem was. I was calling a component on the controller I was testing so it was overwriting the auth component call from the app_controller. Thanks sam for your help ! On May 9, 5:30 pm, Fabian <[EMAIL PROTECTED]> wrote: > Ok i've simp

Re: auth->allow index

2008-05-09 Thread Fabian
can be seen now =( It seems the only thing that works is ' * ' On May 9, 5:14 pm, Fabian <[EMAIL PROTECTED]> wrote: > class AppController extends Controller { > > var $components = array('Auth'); > > function beforeFilter() >

Re: auth->allow index

2008-05-09 Thread Fabian
<[EMAIL PROTECTED]> wrote: > so that is the beoreFilter of the Admins controller > > and you have Auth set in your app_controller - post your auth set up too > > does putting parent::beforeFilter in the Admins controller help > > also you could use admin routing here

Re: auth->allow index

2008-05-09 Thread Fabian
;,'edit','index'); } and still all the indexes are showing up On May 9, 4:44 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > in your if state your assigning the value the one below compares the values > > if ($this->name == 'Admins'){} >

auth->allow index

2008-05-09 Thread Fabian
Hi all. I'm having problem using the deny and allow methods for the index function. In my app controller I have function beforeFilter() { $this->Auth->allow('*'); $this->Auth->deny('delete','add','edit'); if ($this->name = 'Admins'){ $this->Auth->deny('delete','

Re: database configuration on domain

2008-04-10 Thread Fabian
t; On Wed, Apr 9, 2008 at 9:49 PM, Fabian <[EMAIL PROTECTED]> wrote: > > > I'm getting this warnings: > > > Warning: mysql_connect(): Can't connect to MySQL server on 'montana- > > realty-co.com' (111) in /home/content/b/e/n/benjimecutchen/html/

database configuration on domain

2008-04-09 Thread Fabian
I'm getting this warnings: Warning: mysql_connect(): Can't connect to MySQL server on 'montana- realty-co.com' (111) in /home/content/b/e/n/benjimecutchen/html/cake/ libs/model/dbo/dbo_mysql.php on line 100 Warning: mysql_select_db(): supplied argument is not a valid MySQL- Link resource in /hom

Re: Custom Query Insert Into

2008-01-16 Thread Fabian
and if anyones wants to know my other problem was that I assigned this data like this: $this->data['note']['user_id'] = $user_id; and should be: $this->data['Note']['user_id'] = $user_id; On Jan 16, 11:51 pm, Fabian <[EMAIL PROTECTED]&g

Re: Custom Query Insert Into

2008-01-16 Thread Fabian
tes` MODIFY COLUMN `notes_id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT = 66"); And I ended up doing this on the controller instead of using the model, since in the model it didn't work. On Jan 16, 11:20 pm, Fabian <[EMAIL PROTECTED]> wrote: > my query is : > > $ret

Re: Custom Query Insert Into

2008-01-16 Thread Fabian
my query is : $ret = $this->query("INSERT INTO Notes (user_id,date_added,date_modified,details) VALUES (1,'2008-01-01 17:22','2008-01-01','Test')"); Had a typo before. On Jan 16, 11:06 pm, Fabian <[EMAIL PROTECTED]> wrote: > Hi all, > &

Custom Query Insert Into

2008-01-16 Thread Fabian
Hi all, I'm trying to create a custom query but I keep getting errors. I tried this query on mysql command prompt and it works perfectly however in here it doesn't seem to work. Create table 'notes' ( notes_id int(20) NOT NULL auto_increment, 'user_id' int(11) NOT NULL, 'date_added' TIMESTAMP N

Re: Model Cake Conventions Table Id

2007-12-20 Thread Fabian
> Now you weren't clear about the table name, is it singular or plural? > If it is singular (e.g. not matching the convention), then also add > var $useTable = 'event'; > > On Dec 20, 12:01 pm, Fabian <[EMAIL PROTECTED]> wrote: > > > Hi I'm trying t

Re: Date Ranges & Conditions

2007-12-20 Thread Fabian
thanks baz that worked great =) On Dec 19, 7:52 pm, Fabian <[EMAIL PROTECTED]> wrote: > $conditions = array("`date_added` > " . "'" . $startDate . "'", > "`date_added` < " . "'" . $endDate . "'")

Model Cake Conventions Table Id

2007-12-19 Thread Fabian
Hi I'm trying to insert data to a table that doesn't exactly follows cakes conventions. The table name is Events and instead of having and id , it has the name event_id. Is there a way to change this on cake so it looks for the singular table name and then append id to it? The weird thing is that

Re: Date Ranges & Conditions

2007-12-19 Thread Fabian
ry that is being written. > > I, personally, have never used the "BETWEEN" for MySQL. I usually have > something like: > > $from = > $to = > > $condition = array('date' => "date > $from and date < $to"); > > But that

Date Ranges & Conditions

2007-12-17 Thread Fabian
Hi is it posible to define the $conditions inside a function instead on the beginning of the controller. I have the following "BETWEEN 2007-11-01 AND 2007-11-02"); $this->set('events', $this->Event->findAll($this->conditions)); if (isset($this->namedArgs['date'])

Re: RequestAction parameters

2007-12-17 Thread Fabian
eing set at all - have you tried outputting $username > in the view, to see if it actually contains anything? > > Tufty > > On Dec 14, 9:24 pm, Fabian <[EMAIL PROTECTED]> wrote: > > > I did the following > > > requestAction('archives/index/'.

Re: RequestAction parameters

2007-12-14 Thread Fabian
I did the following requestAction('archives/index/'.$username); ? > and then in the controller Archive->findByUser($username); if(isset($this->params['requested'])) { return $archives; } $this->set('archives', $archives); } } ?> And I get this error:

RequestAction parameters

2007-12-14 Thread Fabian
Hi all, How can I pass parameters throught requestAction. Right now I have this on my layout: renderElement('archives', array("username" => "test1"));?> This calls a element which has the following: requestAction('archives/index/'); ?> I want to pass username to archives/index. Can be this do

Re: 2 Models 1 Layout

2007-12-13 Thread Fabian
is->set('posts', $posts); >} > > } > > This means the posts index will work both if you go to it directly and > if you use it in a requestAction. > > Hope that helps! > > Tufty > > On Dec 13, 5:58 am, Fabian <[EMAIL PROTECTED]> wro

2 Models 1 Layout

2007-12-12 Thread Fabian
Hi All, I'm trying to gather data from 2 different models (2 different tables) and I want to place them on my layout. I read something about using a requestAction so I did the following: function index() { $this->set('archives', $this->Archive->findAll()); $this->set('pos

Ver esta página: "Cake Apps/Sites In The Wild"

2007-12-06 Thread Fabian Ramirez
I added 4 sites created in CakePHP :) Haz clic en http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild. Si haciendo clic no se activa, copia el vínculo y pégalo en la barra de direcciones de tu navegador. --~--~-~--~~~---~--~~ You received this

Re: Looking for a good timepicker

2006-10-11 Thread Fabian Schächter
Hi, ive found the error. You have include the css in your layout. *ARGH*Greetings,  Fabian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email t

Re: Looking for a good timepicker

2006-10-11 Thread Fabian Schächter
Hi HalfBaked, do you have an example how to integrate this picker in a view? Im playing a lot, but it always show at the bottom on the view...Greetings  Fabian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cak

Re: Looking for a good timepicker

2006-10-10 Thread Fabian Schächter
Hi, this one is awesome!Thanks!2006/10/10, HalfBaked <[EMAIL PROTECTED]>: I use a script from dhtmlgoodies.com that is a calendar and time pickerin one.  Check it out at:http://dhtmlgoodies.com/index.html?page=calendarScripts I had it up and running in a couple minutes. --~--~-~--~~---

Looking for a good timepicker

2006-10-10 Thread Fabian Schächter
Hi all, im using for some projects datepickers, coded in _javascript_, so the users can easily choose a date. But now im looking for goodlooking and easy to use timepicker. Does anybody some good scripts, or using something similar in views? Thanks,  Fabian

Re: selectTag ?empty optiont?

2006-09-07 Thread Fabian Schächter
Hi,look here:http://api.cakephp.org/class_html_helper.html#0a0a7c56c21b7d7352fd99158350dfc5Its default, but with selectTag('File/category_id', $cats,null, null, null, false); ?> youl have a nice selec box...bye  DerKlops --~--~-~--~~~---~--~~ You received this mess

cake-php-de

2006-04-05 Thread Fabian Schächter
Hi all,is anyone interesting in an [EMAIL PROTECTED] for german bakers?Greetz  Fabian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@google