I have a users model and a photos model,
Class users{
Var belongsto=array(
'Photos'
}
You get the idea,
When I run a $this->Some
Model>find('all',array('contain'=>array('User','User.Photo')))
It breaks this up into 2 sql statements so even with a limited amount of 20
resul
Be sure that you have not turned off error logging!
See the CakePHP book at:
http://book.cakephp.org/view/1189/Debugging
Maybe you can use the debugging class to track down your issue!
Also take a look at the Error handling at:
http://book.cakephp.org/view/1188/Error-Handling
Maybe that too can
Well, it certainly clarifies a lot :) "My app is not working"
Turn on debug in the config/core.php file, set it to 2.
Use debug in your code, as described in the CakePHP book at:
http://book.cakephp.org/view/1190/Basic-Debugging
and see what kind of data you are working with, whether or not they
c
That's easier than the theme. Thanks Jeremy.
--
Louie Miranda
- Email: lmira...@gmail.com
- Web: http://www.louiemiranda.com
On Fri, Jun 18, 2010 at 1:28 PM, Jeremy Burns | Class Outfit <
jeremybu...@classoutfit.com> wrote:
> In your controller function type: $this->layout = 'goodbye';
>
> Jere
In your controller function type: $this->layout = 'goodbye';
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 18 Jun 2010, at 04:30, Louie Miranda wrote:
> Would it be possible to use different default.ctp (or shall I say, different
> templates) for each cont
Great!!! thanks a lot.
--
Louie Miranda
- Email: lmira...@gmail.com
- Web: http://www.louiemiranda.com
On Fri, Jun 18, 2010 at 12:22 PM, Zaky Katalan-Ezra wrote:
> Use theme
> http://book.cakephp.org/view/488/Themes
>
> Check out the new CakePHP Questions site http://cakeqs.org and help
> othe
I have a site which throws a mysterious amount of 404 - errors in
production. Since it's a public site I can't put debug on and see what
errors PHP / Cake is throwing at me.
Can I somehow redirect those errors to a file instead? It's not doing
it by default..both error.log and debug.log is empty..
If you decided to modify helper, you should not copy it to /app/views/
helpers, but create there MyPaginator helper, that extends
PaginatorHelper, where only method numbers() declared. Before class
definition put App::import('Helper', 'Paginator') to load initial
helper, in your app replace user $p
I created a .manifest file in my webroot folder and I've linked to it
in my layout's html tag. The problem is I think that it isn't
returning w/ the text/cache-manifest type that is required. How do I
go about fixing this?
Check out the new CakePHP Questions site http://cakeqs.org and help others
Use theme
http://book.cakephp.org/view/488/Themes
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake
Hi!
I've been struggling with something that I cannot seem to get working.
I have this relationship: Treatment HABTM Symptom
What I want to do is: search treatments by symptom, and the result
must display treatments fields (id, name, cost, etc).
For now, I've been doing this in treatments_contro
Would it be possible to use different default.ctp (or shall I say, different
templates) for each controllers?
To better understand, here's some:
*EXAMPLE:*
CONTROLLER/PAGE/URL: example.com/welcome
VIEW/TEMPLATE: /app/views/layouts/welcome.ctp
CONTROLLER/PAGE/URL: example.com/goodbye
VIEW/TEMPLAT
No prob. Good luck with your app.
On Jun 17, 7:12 pm, "#2Will" wrote:
> a ha! thanks sam. I was calling the settings function in before
> render, which i guess is too late. i moved it to before filter and
> the vars are available. brill.
>
> Thanks!
>
> Will.
>
> On Jun 16, 4:16 pm, Sam wrot
a ha! thanks sam. I was calling the settings function in before
render, which i guess is too late. i moved it to before filter and
the vars are available. brill.
Thanks!
Will.
On Jun 16, 4:16 pm, Sam wrote:
> Variables stored via Configure::write should be accessable anywhere in
> your site-
Hey all,
The CakeFest 2010 call for speakers is closing this friday (18th June
2010).
If you were planning on submitting a talk proposal, please ensure you
do so by this date!
We've had a huge response to the call for speakers, and will be going
through them over the weekend to deliver a schedule
I have a strange issue with sessions while using database to store
them, in some cases the session data is not being updated after a
$this->Session->write.
I put some $this-log() calls in the cake_sessions.php library file and
the write function returns true but a mysql query shows the old value.
My app is not working.
I need some example working for try to understand what is wrong with
this code.
The pagination is not working.
I think that should be some other way to do it, but I dont know.
Thanks.
Alejus
Check out the new CakePHP Questions site http://cakeqs.org and help others with
Sorry should have mentioned this is a shared hosting environment
(nearlyfreespeech.net) so changing the /home directory is not possible
(ie. I only have /protected and /public) so I can't add any new
folders there or modify the apache config, I can obviously
use .htaccess though.
On Jun 17, 9:41 p
wouldnt it be easier to properly set em up?
at least if you're actually configurating your apache config files
/home
/home/cake
/home/vendors
/home/app1
/home/app2
where as ALL those folders are still protected and "under the surface"
only /home/app[0|1]/webroot is public
therefore no changes ha
Thank you both for your comments.
What I've done to achieve this is copy the PaginatorHelper to my App directory
where I modified the numbers method. I haven't worked professionally with PHP
since the late 90s, so I will definately read up and look into solving it
neatly.
For what it's worth,
Hi,
I new to cake and trying to install it using the advanced installation
so only have one copy of the 'cake' directory to use for all my
projects.
The directory structure I use is:
/home
/protected (- location of '/cake' directory)
/public (- where all public content lives)
/help.f
There is an option to run controller callbacks when caching:
http://book.cakephp.org/view/346/Caching-in-the-Controller
On Jun 17, 11:22 am, nMac wrote:
> Hi to all!
>
> I'm having an issue in the App I'm working in which consists in the
> following:
>
> 1-An app_controller having functions to ch
I tried to look through the CakePHP code and didn't find any P3P
header.
Please clarify where you found it in your code?
Enjoy,
John
On Jun 16, 5:14 pm, Yves Jaques wrote:
> I see in the cake libs where it sets the P3P header but I want to set
> it to a different set of values. How do I load i
Welcome, it seems to me that you already have joined, since you can
submit to the group :)
Don't hesitate to ask in case you have issues with your CakePHP
projects!
Enjoy,
John
On Jun 16, 5:29 pm, Anshul Meena wrote:
> I am using Cakephp 1.2 in Netbeans 6.8 to develop database management
> sys
Welcome, it seems to me that you already have joined, since you can
submit to the group :)
Enjoy,
John
On Jun 17, 6:47 am, badboyonplay wrote:
> i want to join this group
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You rec
Take a look at the CakePHP book at these locations:
http://book.cakephp.org/view/1390/Automagic-Form-Elements
which explains about the form elements and the automagic functionality
of it!
http://book.cakephp.org/view/1390/Automagic-Form-Elements#options-options-1394
which explains how your data i
On Jun 17, 9:20 am, Matthew Powell wrote:
>
> a2enmod mod_rewrite will get you half-way
That should be sudo a2enmod rewrite
(no "mod_")
> sudo ln -s home/zaky/cakephpproj/ mynewapp
What I've been doing is moving the cake directory to /usr/share/php so
I have:
/usr/share/php/cake_1.2.7
/usr/sh
If I understand the XML helper correctly, then the result from the
serialize method is an XML structure. But this structure is without
the XML tag, so the browser will not see it as XML to be rendered.
Somewhere there should be an XML layout that are used with outputing
XML. In the layout should b
Please provide more information!
What is not working? Is the paginate not returning anything? Is the
searchConditions method not returning the correct condition? Or is
your problem something else?
Enjoy,
John
On Jun 17, 4:02 pm, Alejo wrote:
> Hi I want to use a simple search form, but I cant
Please provide more information!
How is it not working? What is your expected result and what are you
getting?
Enjoy,
John
On Jun 17, 3:53 pm, Abraham Boray wrote:
> Guys, I've been working on a project that's required authentication !
> I set up the system it's working perfectly, still I have
Hi,
I'm not aware of the CSS technique you mention, but if the $option
array of the numbers() method can't help you, what I would personally
do is creating my own Helper in my app inheriting from the core
PaginatorHelper.
This would allow to override the numbers() method to do what you need,
with
On Jun 17, 5:24 am, Florian wrote:
>
> Warning (512): SQL Error: ORA-00936: Ausdruck fehlt [CORE\cake\libs
> \model\datasources\dbo_source.php, line 527]
> Query: SELECT FROM connection_settings ConnectionSetting WHERE 1 = 1
Missing expression, not table. Search for ORA-00936, it is "missing
expr
On Jun 16, 5:43 pm, Joakim wrote:
> Hi,
>
> I am struggeling with including the prototype js library.
>
> When i do this in my view add.ctp:
> link('prototype'); ?>
> link('scriptaculous'); ?>
>
> I get this error returned in the js files:
> Missing Controller
> JsController could not be f
On Jun 17, 3:54 am, Mario Simaremare
wrote:
> dear all,
> i just learn the cake in a week. and i start to get confused with how
> to paginate a custom query.
This came up on the list a couple of days ago. Have you seen this?
http://book.cakephp.org/view/249/Custom-Query-Pagination
But it looks t
Has cake dropped native support for DB2 in version 1.3?
On Jun 17, 12:38 pm, Kareem Sabri wrote:
> Upon checking the dbo_db2.php doesn't exist - ie. no driver. Nor odbc.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You receive
On Jun 17, 5:30 pm, Marcelo F Andrade wrote:
> On Wed, Jun 16, 2010 at 5:53 PM, syra...@googlemail.com
>
> wrote:
>
> > The index.ctp has this line :
> > >>create('CautareProduseVechi',array('action'=>'cautareProduseVechi'));?
>
> > This generated html code is :
> > > action="/new_admin/cautare
Upon checking the dbo_db2.php doesn't exist - ie. no driver. Nor odbc.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this grou
Hi all,
I tried to follow this tutorial to do REST web services.
Below are my code.
CONFIG/ROUTES.PHP
Router::mapResources('recipes');
Router::parseExtensions('xml'); // it doesn't make a difference
whether i include 'xml' or not
MODEL
VIEW //views/recipes/xml/index.ctp
Hello,
I get the following message when attempting to connect to DB2
Your database configuration file is present.
Fatal error: Call to a member function isConnected() on a non-object
in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs
\uigr2\cake\libs\view\pages\home.ctp on line 84
Hi to all!
I'm having an issue in the App I'm working in which consists in the
following:
1-An app_controller having functions to check if the user is logged in in
Facebook (Facebook Connect)
2-A beforeFilter() function in app_controller setting the Auth component,
the Facebook component and call
As a follow up question, I'm not sure if this is an htaccess question
or a configuration setting.
Something I forgot to mention is that with some htaccess tweaks I did
reach a point in getting this URL working (http://www.mysite.com/
subdirectory/pages/about-us)
So my main question is how do you
Hi I want to use a simple search form, but I cant do it.can someone
help me?
My idea is use it with differents tables, models and parameters too.
I´m trying this code:
in controller:
function search($word = null){
if($word !== null){
$this->paginate = array(
'YourModel' =
Guys, I've been working on a project that's required authentication !
I set up the system it's working perfectly, still I have a problem.
My system got Two roles, USER & ADMIN
4 the admin It's okay, he got the full access after login in.
But 4 the user I want to restrict Some actions and allow ju
It looks like I have the same setup as you have, an email in a
variable and a default email as a constant.
My code is like this:
[code]
define('DEFAULT_TO_ADDRESS','');
...
$this->Email->to = (APPLICATION_STATE == APPLICATION_STATE_PROD) ? '<'.
$emailAddress.'>' : DEFAULT_TO_ADDRESS;
[/code]
What
Why not assign your CSS to tags itself?
On Jun 17, 5:25 am, mvanderw wrote:
> Hi all,
>
> I'm getting ready to deploy my first full-blown Cake app and am
> polishing the last bits and pieces of the front-end. One of the things
> I'd like to do is to use the sliding doors CSS technique to create
On Thu, Jun 17, 2010 at 4:56 AM, jnjn wrote:
>
> Hello,
>
> On my cake blog i output dates on my posts with this line:
>
>
>
> outputs:
> 19March,2010
>
> How can i output this:
> 19
> March
> 2010
This way?
Best regards.
--
MARCELO F ANDRADE
Belem, Amazonia, Brazil
"I took the red pill"
On Wed, Jun 16, 2010 at 5:53 PM, syra...@googlemail.com
wrote:
>
> The index.ctp has this line :
> >create('CautareProduseVechi',array('action'=>'cautareProduseVechi'));?
>>
>
> This generated html code is :
> action="/new_admin/cautare_produse_vechis/cautareProduseVechi">
>
> The old 1.2.0 was g
On Wed, Jun 16, 2010 at 2:19 PM, Daniel wrote:
> (..)
> but when i include in my controller a config.php file:
> define('EMAIL', 'exam...@domain.com');
> ?>
>
> and try to use EMAIL to set the destination, it doesn't work :-(.
Not sure, but maybe you should try this:
!defined('EMAIL') && define
Hi guys,
I have three tables
categories campaigns
campaign_categories
--
--
-
id
id id
name name
category_id
status
detail
Right, a2enmod, a2dismod, a2ensite, a2dissite. are, at least as far as
I know, Debian specific scripts to manipulate the apache2
configuration directory. a2enmod mod_rewrite will get you half-way
there. You'll also need to modify the default vhost to set
AllowOverride to be on in order for cake's
You probably don't have everything needed to compile software for apache.
$ sudo apt-get install build-essential apache2-prefork-dev php5-dev
libapache2-mod-php5
And try again. Also, take a look at google charts. I'm not using it
myself, but it looks very nice.
Speaking of google, I hear they
Try a ubunto list
On 6/17/10, sivarama prasad wrote:
> Hello,
>
> I am trying installation gdchart for php chart reports.
> i was downloaded gdchar-0.2.0.tar , extract it and change to
> gdchart-0.2.0 dir then given bellow commands
>
> phpize
> ./configure
> make
> make install
>
> but its not
I would think that maybe initialize is too early!
Have you tried to move it to the startup, which is invoked after
beforeFilter()?
I do all my component processing in the startup, only saving settings
in the initialize method.
Enjoy,
John
On Jun 17, 1:07 pm, Ernesto wrote:
> Hello.
>
> i just
Hello.
i just wrote a simple component that keeps track of latest user's
sorts in every index view of every controller in my app
for example if an user sorts Orders by date_created (default is code)
the component will write in session
- the page the user was viewing
- the sort field
- the sort ord
Oh and Calvin - do you actually work for Rotten Records? That's
awesome, I love Acid Bath! I actually work for a few US metal labels
too in my freelance capacity!
On Jun 17, 3:04 am, calvin wrote:
> No one is going to do your work for you (no matter how "easy" you
> claim it is). And you can't be
Well said. There seems to be a growing trend of people posting in this
group that seem have little to no idea about working with CakePHP and
seem to just want people to do their work for them. Personally I just
don't get it, but maybe that 'cos I actually enjoy programming and
solving problems...
Hello everyone,
i ran into some trouble when switching from mySQL to ORACLE.
In mySQL i created the table names in lower case.
Now after switching to ORACLE it's seems CAKE has some problems to
find the tables inside ORACLE, table names also lower case.
my dbconfig looks like:
var $default = ar
I didn't know about that command either. However, if you examine the
contents of modules-enabled, you'll see they're all sLinks. It
doesn't make sense to me to have two copies of the same file in a
situation where and upgrade might change only one of them. That's what
links are for. I didn't have
The results are perfectly correct for the code you are running; you are
finding all Trackers. Your code:
$this->set('trackers', $this->User->Tracker->find('all'));
... is saying "go to the User model, then leap out to the Tracker model and
bring me back all Trackers".
To filter the search, pa
Hello
Try This
*link(array('js_file_name_without_extension'),false));?>
and put js file in app/webroot/js/
and add this line in controller
var $helpers = array('Html', 'Form','Javascript','Session');
Best Luck
Bye Bye
*
On Thu, Jun 17, 2010 at 3:13 AM, Joakim wrote:
> Hi,
>
> I am strugge
Hello,
On my cake blog i output dates on my posts with this line:
outputs:
19March,2010
How can i output this:
19
March
2010
Thanks!
--
View this message in context:
http://old.nabble.com/Format-date-with-span-classes-tp28911508p28911508.html
Sent from the CakePHP mailing list archive at
i want to join this group
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To
Hello,
I am trying installation gdchart for php chart reports.
i was downloaded gdchar-0.2.0.tar , extract it and change to
gdchart-0.2.0 dir then given bellow commands
phpize
./configure
make
make install
but its not working
Check out the new CakePHP Questions site http://cakeqs.org and help o
I'm in the process of creating my first web application with CakePHP,
however I've run into some problems. I'll just start with the code:
class User extends AppModel
{
public $name = 'User';
public $belongsTo = 'Group';
public $hasMany = array(
'Tracker' =>
Hi all,
I'm getting ready to deploy my first full-blown Cake app and am
polishing the last bits and pieces of the front-end. One of the things
I'd like to do is to use the sliding doors CSS technique to create
reusable buttons. For this purpose I'd like to generate spans inside
the anchor tags tha
A couple of obvious questions:
- What is the Gitihub email plugin?
- What isn't working?
- What's wrong with the one that comes with CakePHP?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 16 Jun 2010, at 15:55, naveeth wrote:
> i am using githup email plugi
Hi,
I am struggeling with including the prototype js library.
When i do this in my view add.ctp:
link('prototype'); ?>
link('scriptaculous'); ?>
I get this error returned in the js files:
Missing Controller
JsController could not be found.
Create the class JsController below in f
Hello guys,
I have upgraded from cakephp 1.2.0.4451alpha to 1.2.7 , so that my
application works with php 5.3.
Now some of the forms no longer work. It looks as if the behavior of
FormHelper->create has significantly changed.
For example, one of the controllers is called 'Intretinere' and has
I am using Cakephp 1.2 in Netbeans 6.8 to develop database management
system.
I would like to join this group for forms and discussions.
Regards,
Anshul Meena
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this messa
I see in the cake libs where it sets the P3P header but I want to set
it to a different set of values. How do I load in my own P3P?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribe
Hello everyone, I just started using CakePHP. I followed the blog
tutorial and would like to attach images to posts with David Persson
media plugins, but I wonder if it's possible to use a "many to many"
relation (habtm).
I made this structure in the database:
posts table:
id
title
body
i am using githup email plugin but it's not working properly.
give any solution or idea about it .
thanks 4 advance
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google
dear all,
i just learn the cake in a week. and i start to get confused with how
to paginate a custom query.
if i have a more complex table:
users:
id, group_id, name, password
groups:
id, name
roles:
id, name
group_roles
id, role_id, group_id
then i have a query:
"SELECT users.name FROM
users
Just remember that updateAll does not sanitize inputs like save and
saveField does and so may open your app to SQL injection attacks
unless you manually sanitize the user inputs.
On Jun 16, 12:28 pm, WhyNotSmile wrote:
> Thanks for all the replies.
>
> I got it working by using updateAll, as Serg
74 matches
Mail list logo