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
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
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
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
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
--~--~-~-
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
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
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
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
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()
>
<[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
;,'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'){}
>
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','
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/
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
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
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
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,
>
&
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
> 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
thanks baz that worked great =)
On Dec 19, 7:52 pm, Fabian <[EMAIL PROTECTED]> wrote:
> $conditions = array("`date_added` > " . "'" . $startDate . "'",
> "`date_added` < " . "'" . $endDate . "'")
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
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
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'])
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/'.
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:
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
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
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
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
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
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
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.
--~--~-~--~~---
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
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
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
36 matches
Mail list logo