ying yang | 1 Jun 2012 02:07
Picon

View

I have a problem here, i have tableA and tableB in tableA i can view the information or data I input.
but I want to know how i can view tableB information using tableA view? how i can do that in cakephp2.0?
thank you in advance.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php
Greg Skerman | 1 Jun 2012 03:19
Picon

Re: View

not really understanding the question... are you having trouble setting values in the controller to expose them in the view?

really hard to help without code. Do you have some code you can share?


On Fri, Jun 1, 2012 at 10:07 AM, ying yang <yingyang99999-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I have a problem here, i have tableA and tableB in tableA i can view the information or data I input.
but I want to know how i can view tableB information using tableA view? how i can do that in cakephp2.0?
thank you in advance.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php
Kid Noire | 1 Jun 2012 04:13
Picon

Missing Controller Error

I've just installed CakePHP and trying to get myself through
Andrewperk's blog tutorial but I get this error  after the second
video...

Missing Controller
Error: PostsController could not be found.
Error: Create the class PostsController below in file: app/Controller/
PostsController.php
<?php
class PostsController extends AppController {

}

I've tried to Google my way out of this one but don't have the
technical expertise to comprehend the suggestions I find.  I'm
assuming my routes are a bit f'd up so if anyone could help me I would
be greatly appreciative.

Sincerely,

A Noob

------------

BTW I'm using XAMPP on a Mac

Thanks!

--

-- 
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP
related questions.

To unsubscribe from this group, send email to
cake-php+unsubscribe@... For more options, visit this group
at http://groups.google.com/group/cake-php

ying yang | 1 Jun 2012 07:16
Picon

Re: Missing Controller Error

<?php
class PostsController extends AppController {

}

?>

On Fri, Jun 1, 2012 at 10:13 AM, Kid Noire <thiskidnoire-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
I've just installed CakePHP and trying to get myself through
Andrewperk's blog tutorial but I get this error  after the second
video...

Missing Controller
Error: PostsController could not be found.
Error: Create the class PostsController below in file: app/Controller/
PostsController.php
<?php
class PostsController extends AppController {

}

I've tried to Google my way out of this one but don't have the
technical expertise to comprehend the suggestions I find.  I'm
assuming my routes are a bit f'd up so if anyone could help me I would
be greatly appreciative.



Sincerely,

A Noob


------------

BTW I'm using XAMPP on a Mac

Thanks!



--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php
johnny | 1 Jun 2012 08:00
Favicon

Re: browser compatibility: the weirdest thing ever with IE. throws flash message all the time!!!

If it only occurs on IE it might be a prolem with the user session.
Try setting Session.checkAgent to false in core.php and see if that
helps.
I had problems with sessions getting dropped in IE, with this setting
on.

On May 31, 9:33 pm, luftlinie <thomasfuch...@...> wrote:
> hi everyone,
>
> I try to explain it shortly. When a user clicks on any profile, my
> controller function checks if that user is active oder locked. active
> means account is activated, locked means locked ;).
>
> now i have been testing this with chrome, safari and firefox for
> months!!! the process works, 100%.
>
> BUT with Internet Explorer... if I go on any users profile, activated
> or unlocked, cake throws me the message, although, logically, it is
> correct in my code. it worked in other browsers and IE goes to those
> profile without redirecting..
> I am not even close to getting this. I am totally stunned. Its so
> weird.
>
> Is there any way, that IE cant handle cakes flash messages, or the CSS
> with it?
>
> here is my controller profile code:
> =======================================================
> $locked = $this->User->find('first', array(
>                             'fields' => array('User.id','User.locked', 'User.active'),
>                             'conditions' => array('User.id = \''.$id.'\' AND User.locked =
> false')
>                             ));
>
>                 if(!empty($locked))
>                 {
>                         if($locked['User']['active'] == true)
>                         {
>
>                                 if($id != $this->Session->read('User.id')) //visitor!!
>                                 {
>
>                             some code here........
>                                 }
>                                 else //profile owner!!
>                                 {
>                                         some code here........
>                                 }
>
>                         }//active
>                         else
>                         {
>                                 $this->Session->setFlash('this account is not active.');
>                                 $this->redirect(array('controller' => 'users', 'action' =>
> 'profile', $this->Session->read('User.id')));
>                         exit();
>                         }
>
>         }//unlocked
>         else
>         {
>                 $this->Session->setFlash('user has been deleted');
>                 $this->redirect(array('controller' => 'users', 'action' =>
> 'profile', $this->Session->read('User.id')));
>                 exit();
>         }
>
>      }
> =====================================================
>
> so IE always(!) goes to that certain profile throws this line
> $this->Session->setFlash('this account is not active.');
>
> BTW i am using this code to throw the cake typical messages
> if($session->check('Message.flash')):
>                                         echo $session->flash();
>                                 endif;
>
> appreciate your help. thanks soooo much

--

-- 
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP
related questions.

To unsubscribe from this group, send email to
cake-php+unsubscribe@... For more options, visit this group
at http://groups.google.com/group/cake-php

Mike Griffin | 1 Jun 2012 09:51
Picon
Gravatar

Re: Missing Controller Error

On Fri, Jun 1, 2012 at 3:13 AM, Kid Noire <thiskidnoire@...> wrote:
> I've just installed CakePHP and trying to get myself through
> Andrewperk's blog tutorial but I get this error  after the second
> video...
>
> Missing Controller
> Error: PostsController could not be found.
> Error: Create the class PostsController below in file: app/Controller/
> PostsController.php
> <?php
> class PostsController extends AppController {
>
> }
>
> I've tried to Google my way out of this one but don't have the
> technical expertise to comprehend the suggestions I find.  I'm
> assuming my routes are a bit f'd up so if anyone could help me I would
> be greatly appreciative.

Did you create the file calles PostsController.php in the
app/Controller directory and put the suggested text into the file and
save it?

There's not really a lot of technical expertise to comprehend there.
You shouldn't need to touch the routes file at all.

Mike.

--

-- 
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP
related questions.

To unsubscribe from this group, send email to
cake-php+unsubscribe@... For more options, visit this group
at http://groups.google.com/group/cake-php

luca capra | 1 Jun 2012 10:03
Picon

Best approach for handling group by query

Hi,
I'm planning to add a  group by to an index action (like by date('F Y') )
The query could be a first one to find out the groups then loop the 
results to create subqueries for the single group.
Then I would move the main table in index view to an element and then 
loop the groups => records list (but maybe I could either use the new 
views blocks instead).

Has anyone a suggestion for a good way to query/show grouped records?

Thanks, Luca

--

-- 
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP
related questions.

To unsubscribe from this group, send email to
cake-php+unsubscribe@... For more options, visit this group
at http://groups.google.com/group/cake-php

heohni | 1 Jun 2012 11:19
Picon
Favicon

XML does not work anymore (changed from one server to another)

Hi!

I just have the problem, that I do extract from a xml feed and display it in a view.
It works fine on server1 but not on server2.

I get this error message:
2012-06-01 11:02:08 Warning: Warning (2): SimpleXMLElement::__construct(http://www.domain.com/?feed=rss2) [<a href='http://php.net/simplexmlelement.--construct'>simplexmlelement.--construct</a>]: failed to open stream:
no suitable wrapper could be found in [/homepages/xx/xx/htdocs/lib/Cake/Utility/Xml.php, line 104]

and also I find in error log
2012-06-01 11:02:03 Error: [Exception] String could not be parsed as XML

I am not sure what I should look for?
I can open the same script on another server and there it works just fine!
Why not on a another server?
Is it a script problem?
Or a server setting?

Please advice!
Thanks!

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php
mebibyte | 1 Jun 2012 12:08
Picon

Action is running twice because of ckeditor link

Hey

I'm using ckeditor as wysiwyg editor. In the first line of my view for
'edit' I wrote
echo $javascript->link('ckeditor/ckeditor', false);
Everything is running fine but the edit function is running twice and
that is giving me some problems.
Is this normal or am I doing something wrong?

Greetings

--

-- 
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP
related questions.

To unsubscribe from this group, send email to
cake-php+unsubscribe@... For more options, visit this group
at http://groups.google.com/group/cake-php

AD7six | 1 Jun 2012 12:27
Picon
Gravatar

Re: Missing Controller Error



On Friday, 1 June 2012 04:13:09 UTC+2, Kid Noire wrote:
I've just installed CakePHP and trying to get myself through
Andrewperk's blog tutorial but I get this error  after the second
video...

Missing Controller
Error: PostsController could not be found.
Error: Create the class PostsController below in file: app/Controller/
PostsController.php

Sounds like you're following a tutorial for CakePHP 1.3 and using CakePHP 2.x


and only then try other tuts. 

AD

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/cake-php

Gmane