Hi
Is it possible to make the reverse routing work so that it doesn't add
an index action to the url? For example:
//In routes.php:
Router::connect('/contact/:action/*', array('controller' =>
'contacts'));
//in some other file:
$url = Helper::url(array("controller"=>"contacts"));
$url now cont
Hello,
I am using jquery and cakephp.
I wrote some info on this link.
Can you pls tell me if this is the right way to do it ? or if there is
a better way ?
http://pastebin.com/m247e9d3d
Thanks
Salim.
--~--~-~--~~~---~--~~
You received this message because you
If its needed for one-time purpose only, then simple use Import tab
from PHPMyadmin. Otherwise create a decent model+controller function
to handle bulk import. It would be pretty simple, and has nothing to
deal with Cake.
On May 15, 8:49 am, "(withheld)@gmail.com" <[EMAIL PROTECTED]>
wrote:
> I'v
I've been developing a site for a golf club, currently they store
their member details in an excel spreadsheet.
What is the best way to get my data into MySQL? so far i'veexperimened
a bit with csv files but that proves to be a bit tedious to get right.
--~--~-~--~~~-
> Thanks but, this is my friend's server and I just talked to him on the
> phone. He said that he didn't want to give me total access (to Apache)
> because he didn't want me to break his server. I respect that and,
> will have to wait a couple of day to have all my domains and client's
> domains g
On Thu, May 15, 2008 at 1:51 AM, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
> The worst thing that will happen if you file a ticket is that it will
> be rejected along with an explanation. There might be a snarky
> comment associated with it, but that's it.
Corollary to the above -
Don a bit o
Thanks but, this is my friend's server and I just talked to him on the
phone. He said that he didn't want to give me total access (to Apache)
because he didn't want me to break his server. I respect that and,
will have to wait a couple of day to have all my domains and client's
domains get transfe
I have read the posts extensively on this topic and believe I finally
have this working the way I need it to. Just wondering if the gurus
(yes that's you Nate!) could confirm I got it done the right way. I am
quite excited by the richness of the 1.2 validation feature -- I'm
removing all the uglin
Done: http://bin.cakephp.org/view/579746692
Please have a look.
On 14 May 2008, at 19:41, Marcin Domanski wrote:
>
> post your app_controller and routes.php to the bin
>
> On Wed, May 14, 2008 at 10:03 AM, David Christopher Zentgraf
> <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I ran into this s
I'm guessing that you're using either MSSQL or PostgresSQL, since I
believe they are the only databases that don't allow full table
aliasing. As a result, Cake needs to generate the field list for SQL
queries to remain consistent across all DBs. The aliasing is done
from the dbosource to emulate
On Wed, May 14, 2008 at 6:01 PM, koala kid <[EMAIL PROTECTED]> wrote:
>
> I am new to cake and have just built my first site using it. To spice
> it up I wanted to add a newsletter sign-up form on the home page that
> uses Ajax to both submit the email address and provide a response.
> However the
I am new to cake and have just built my first site using it. To spice
it up I wanted to add a newsletter sign-up form on the home page that
uses Ajax to both submit the email address and provide a response.
However the documentation appears to be lacking and I can't find a
good example anywhere of
Try renaming (or copying) your table and model to something else. I
have a hunch that "quote" is causing the problem (eg. in
collaboration with an extract() somewhere).
On Wed, May 14, 2008 at 6:28 PM, Grant Cox <[EMAIL PROTECTED]> wrote:
>
> What database are you using? MySQL, or something els
if you're using adodb for database connection, i have filed the error
on trac https://trac.cakephp.org/ticket/4130 and the suggested fix.
On May 15, 3:21 am, TracyB <[EMAIL PROTECTED]> wrote:
> I have a model using a table that's been around forever, so it's not a
> CakePHP friendly name. My mode
What database are you using? MySQL, or something else? What database
connection options are you using - perhaps post the $design
configuration from your /app/config/database.php (remove your username/
password of course :P)
Also, what version of Cake?
On May 15, 6:21 am, TracyB <[EMAIL PROTEC
one thing that happened to someone I know recently on their shared
host was a recent upgrade to webmin caused the folder permissions to
be wedged in the new virtual host folders that were created, causing
all kinds of problems with include and require calls in php
Sam D
On Wed, May 14, 2008 at 2
> Huh? If there has been Cake running on that (shared) box how is it not
> configured properly? There was a Cake install on one of my other
> domains when we (a friend and myself) decided Cake would solve the
> issues set out in front of us. Of course, he installed it as he's the
> developer. I'm
very strange what is you table structure?
On May 14, 9:21 pm, TracyB <[EMAIL PROTECTED]> wrote:
> I have a model using a table that's been around forever, so it's not a
> CakePHP friendly name. My model is set up like so:
>
> class Quote extends AppModel
> {
> var $name = 'Quote';
> var $useTabl
Success! The problem was twofold. First, for whatever reason, I had
to use the embedSWF command instead of setting up a new SWFObject.
Second, the path to the swf file had to be a more fully qualified
path. I'm including my working code below. Hopefully it will help
someone else with a similar
Clark, what should it be there? That would certainly explain things
if the path is incorrect.
Jonathon, I've set the safe parameter to false in the javascript
codeblock call and that made no difference.
On May 14, 5:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> pickme/index.php/_swf/t
try not using html->url() and just using /_swf/test.swf
On May 14, 5:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> pickme/index.php/_swf/test.swf' <-- that's not right
>
> On May 14, 5:01 pm, alxlevin <[EMAIL PROTECTED]> wrote:
>
> > I appreciate the help as I'm pretty stumped on this o
pickme/index.php/_swf/test.swf' <-- that's not right
On May 14, 5:01 pm, alxlevin <[EMAIL PROTECTED]> wrote:
> I appreciate the help as I'm pretty stumped on this one. Firebug
> doesn't seem to give any errors. As far as I can tell, the js file is
> correctly being loaded (I can see the code in
there's not really anything to "install"; getting the Save As...
window when you try and access a PHP file has nothing to do with Cake
On May 14, 4:23 pm, onajide <[EMAIL PROTECTED]> wrote:
> Huh? If there has been Cake running on that (shared) box how is it not
> configured properly? There was a
Huh? If there has been Cake running on that (shared) box how is it not
configured properly? There was a Cake install on one of my other
domains when we (a friend and myself) decided Cake would solve the
issues set out in front of us. Of course, he installed it as he's the
developer. I'm trying to
>>
>> > echo $javascript->codeBlock("
>> var so = new SWFObject('".$html->url('/_swf/test.swf')."',
>> 'myContent', '300', '120', '6');
>> so.write('myContent');
>> ");
>> ?>
Considering what you're doing, the codeBlock seems unnecessary. A set
of tags would do the trick.
--~--~---
I appreciate the help as I'm pretty stumped on this one. Firebug
doesn't seem to give any errors. As far as I can tell, the js file is
correctly being loaded (I can see the code in Firebug). Here's what
the javascript parts come out to in the source:
//
Sounds ugly. I don't know enough about Drake, so I couldn't say if
it's responsible. I do remember something about generating a "drake
url". Maybe that's related.
If it is Cake, you could maybe hack Router::url() and place a
Configure::write('base_url', 'something') or somesuch in
bootstrap.php.
that probably doesn't have anything at all to do with cake
check your HTML source and see if / is indeed your web root; look at
how the URLs for your CSS and JS file are getting written, and if they
are actually being loaded
also install FireBug for Firefox and see if you're getting any
Javascri
did you replace the 'app' directory w/ 'myapp' or do you have /home/
username/myapp/app ?
On May 14, 12:27 pm, Roon <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a setup issue on a shared server which i can't seem to find any
> documentation for.
> I am able to get the "Sweet, 'myapp' got Baked
cake_1.2.x.x_6590
I have 2 rules for an email input and am providing the error messages
to $form, instead of the model's $validate array, because they must be
localised. It seems that Cake loses track of these. I've been looking
through FormHelper's source but cannot figure out even how it gets t
Hi. I'm trying to use CakePHP with Flash and can't seem to actually
get the movie to appear. I'm trying to use the swfobject and have
some pretty simple code which isn't working. I'm sure I'm missing
something simple. I have the swf file located in webroot/_swf/. Any
help would be greatly app
I have a model using a table that's been around forever, so it's not a
CakePHP friendly name. My model is set up like so:
class Quote extends AppModel
{
var $name = 'Quote';
var $useTable = 'BillOfMaterial';
var $primaryKey = 'BillID';
var $useDbConfig = 'design';
When I do a $this->Quote->findA
On Wed, May 14, 2008 at 4:19 PM, Marc Schuetze <[EMAIL PROTECTED]> wrote:
>
> will do that.
> Before submitting a ticket I was gonna ask if there is a purpose in
> this that I don't understand.
> I'm still fairly new to cake and I just wanted to be sure
The worst thing that will happen if you fil
will do that.
Before submitting a ticket I was gonna ask if there is a purpose in
this that I don't understand.
I'm still fairly new to cake and I just wanted to be sure
thanks for your answer.
On Wed, May 14, 2008 at 9:17 PM, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
> On Wed, May 14, 2008 at
On Wed, May 14, 2008 at 4:13 PM, MarcS <[EMAIL PROTECTED]> wrote:
>
> I understand that it is this association which is causing the join.
> But I don't understand why that join is required.
> Isn't all the counter cache is supposed to do is update
> foo.dependent_count
> What does it need the join
yes there is one
> 'foo' itself belongs to 'bar' which has many 'foo'
I understand that it is this association which is causing the join.
But I don't understand why that join is required.
Isn't all the counter cache is supposed to do is update
foo.dependent_count
What does it need the join for th
sorry Chris,
you are absolutely correct.
I misunderstood what jonkee posted.
On Wed, May 14, 2008 at 9:06 PM, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
> On Wed, May 14, 2008 at 3:38 PM, Marc Schuetze <[EMAIL PROTECTED]> wrote:
>>
>> But the current behavior is not doing that. When a field is mi
On Wed, May 14, 2008 at 4:04 PM, MarcS <[EMAIL PROTECTED]> wrote:
>
> UPDATE foos as foo LEFT JOIN 'bars' as 'bar' ON ('foo'.bar_id =
> bar.id) SET foo.dependent_count = 99 WHERE foo.id=1
>
> Why does it do that? I can't see the point in creating this join. It
> serves no purpose whatsoever.
Well
On Wed, May 14, 2008 at 3:38 PM, Marc Schuetze <[EMAIL PROTECTED]> wrote:
>
> But the current behavior is not doing that. When a field is missing in
> a request it is not being picked up by the validation routine
Wasn't this question already answered in this thread? If your
validation rules requ
I came accross an issue with the built in counter cache.
My cake version is 1.2.0.6311
The query generated by cake to update the counter uses joins.
Suppose I have a model 'foo' which which has many 'dependent
'foo' itself belongs to 'bar' which has many 'foo'
The query to update the counter cac
> But the current behavior is indeed correct. You simply cannot trust
> that values that should be set in your form will be. If you get a
> request that comes in missing a field, your validation routine needs
> to pick that up. Otherwise, you'd need to do an isset() for each
> required value after
Cake doesn't recursively fetch related model "UnitI18n" if model
"Unit" has only one field - ID
On May 14, 9:37 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> what's the point of a table with only an ID field?
>
> OnMay14, 2:02 pm, senser <[EMAIL PROTECTED]> wrote:
>
> > Hi Bakers :).
>
> >
What are tags? and where can I find more info on this in the documentation?
Is this a feature of views or controllers?
- Original Message
From: Action <[EMAIL PROTECTED]>
To: CakePHP
Sent: Wednesday, May 14, 2008 3:15:17 PM
Subject: Re: Custom tags no longer working in 1.2 Beta...has s
I was wondering if anyone else could try implementing custom html tags
in 1.2 beta to see if it works for you.
I haven't found any documentation indicating it changed since 1.2 pre-
beta, so I might just submit a ticket.
On May 12, 1:11 pm, Action <[EMAIL PROTECTED]> wrote:
> Have you tried usin
Something like :
$js .= 'window.location.href="'.router::url('/controller/action',
true).'";';
echo $javascript->codeBlock($js);
There might be a better way, according to the "beforeRedirect" of
RequestHandler, this code is quite "old" for me (but working)..
hth
On May 14, 8:16 pm, Dovdimus Pri
You can pass all kinds of parameters to the ajax helper including
javascript you want executed:
http://book.cakephp.org/view/208/ajax#ajaxhelper-options-209
On May 14, 2:16 pm, Dovdimus Prime <[EMAIL PROTECTED]> wrote:
> Errr... sorry but how would I go about doing that? How do I get some
> java
> What if there was a case where you didn't want to save all of the
> fields again when you're updating a record?
There are a few ways to go, the easiest probably being
Model::saveField():
$this->User->id = 1
$this->User->saveField('username', 'new_username')
Or use some more complex validation
Have you checked your layout and view files (*.ctp) to make sure css
is being called the same way?
On May 14, 12:27 pm, Roon <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a setup issue on a shared server which i can't seem to find any
> documentation for.
> I am able to get the "Sweet, 'myapp'
Just add "false" as first parameter to restrict :
$this->[model name]->restrict(false, 'user(email,password)' );
That will make the bindable "non reset"
hth
On May 14, 2:06 pm, Nilesh <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>
> I got hoe to work the Bindable Behavior work with pagination in C
hi all,
i'm trying to use the paypal component (http://bakery.cakephp.org/
articles/view/168) in 1.2 but i'm failing. i've copied the code and
followed the steps but i think i'm having a problem with the
component.
when i use the component "as-is", my whole app crashes with:
require_once(PayPal
what's the point of a table with only an ID field?
On May 14, 2:02 pm, senser <[EMAIL PROTECTED]> wrote:
> Hi Bakers :).
>
> I already wrote about my problem
> here:http://groups.google.com/group/cake-php/browse_thread/thread/bab2d3ac...
> but decided to start new discussion because accidentally
http://book.cakephp.org/view/94/views#elements-97
- Original Message
From: benjam <[EMAIL PROTECTED]>
To: CakePHP
Sent: Wednesday, May 14, 2008 2:05:18 PM
Subject: Re: Including a menu on some pages but not all
Exactly what I was looking for.
Thanks.
On May 14, 11:56 am, Kyle Decot
Errr... sorry but how would I go about doing that? How do I get some
javascript function to run when the ajax function returns?
The callback function which modifies the div is all wrapped up in the
framework so I've got no idea how to add to it.
Thanks
David
--~--~-~--~~
Exactly what I was looking for.
Thanks.
On May 14, 11:56 am, Kyle Decot <[EMAIL PROTECTED]> wrote:
> create a file called menu.ctp in your views/elements folder. then you
> can include the menu by using:
>
> echo $this->renderElement("menu");
--~--~-~--~~~---~--~~
Hi Bakers :).
I already wrote about my problem here:
http://groups.google.com/group/cake-php/browse_thread/thread/bab2d3acd4bf78a2/16621f80a1d48564?lnk=gst&q=related+models+recursion#16621f80a1d48564
but decided to start new discussion because accidentally found an
interesting moment.
Let me exp
create a file called menu.ctp in your views/elements folder. then you
can include the menu by using:
echo $this->renderElement("menu");
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this
I apologize if this has been asked before, I looked but did not find
the answer I was looking for.
I know how to include a file in PHP, and here is what I am looking to
do:
in view.ctp:
-
Other view content here
-
What is
I would be really cool if you can add something like that to the core!
Cheers,
mbavio
On 13 mayo, 03:42, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I agree. It would be a sweet feature.
>
> With the default routes in place:
> example.com/pizza/orders/
> This url will already fall back on d
My understanding is that the controller should remove the field from
the validation array:
unset($this->ModelName->validate['field_name']);
On Wed, May 14, 2008 at 12:22 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> What if there was a case where you didn't want to save all of the
> field
Hi all,
I have a setup issue on a shared server which i can't seem to find any
documentation for.
I am able to get the "Sweet, 'myapp' got Baked by CakePHP!" homepage
up and running with no errors.. even the database configured ok,
Problem is, when I run any controllers, looking for deeper pages
What if there was a case where you didn't want to save all of the
fields again when you're updating a record?
For instance, if a user is updating his or her User record, and wants
to edit a username and birthdate, for example. You probably wouldn't
have a form field for 'password' in this same p
as jonknee said, it's not a cake issue, your web server is not
configured properly to run PHP; check the PHP manual for instructions
to properly configure PHP in whatever environment you're using for
your server
On May 14, 8:45 am, onajide <[EMAIL PROTECTED]> wrote:
> Thank you but, I thought my
Also, if you baked your app, you need to run 'bake' from your 'app'
directory or specify this path to the bake script.
Typically I just go into my app directory and execute the bake script
using the full path to the cake directory
On May 14, 12:10 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrot
Looks like something is botched in your path structure;
By default, cake's directory structure should look something like
/cake
/app
/app/webroot
/app/webroot/img
/app/webroot/css
/vendors
Typically I just dump everything into a project folder, and point a
vhost domain to /project_name/app/webr
Thanks, I must have not looked hard enough in trac. I had not noticed
there were milestones for the Cookbook.
Hope I can be of help.
On May 14, 1:26 pm, Sliv <[EMAIL PROTECTED]> wrote:
> Have a look at the "CakePHP Tickets: How To Help" page in the pages
> section for this group. There are link
Return back a status message to the ajax call with a redirect URL and
then use window.location to redirect the user from the client side.
On Wed, May 14, 2008 at 10:25 AM, Dovdimus Prime <[EMAIL PROTECTED]> wrote:
>
> I have an ajax form which does some processing and returns data to a
> target
I have an ajax form which does some processing and returns data to a
target div. In one particular situation, what I need to happen is that
instead of populating the target div, it calls a new page (view)
instead.
I tried using this->redirect but this loads the new view into the
target div, rathe
Great stuff, thanks to both you guys.
On May 14, 10:15 am, stillboy <[EMAIL PROTECTED]> wrote:
> The folder that the html helper points to for images, javascript and
> css files is the webroot folder located at cakeroot->app->webroot. So
> the img folder that you want to have pasty.jpg in is cake
> Anyway, I decided to delete the install and start from scratch. A
> friend said the files are supposed to be installed in httpdocs. They
> were (still are until I delete everything). When you go to the web
> page you're asked to download it instead of view
> it.http://dev.miamiwebservers.com
Y
Hi everybody,
I got hoe to work the Bindable Behavior work with pagination in Cake
1.2?
so simple copy to code in your function and changes
$this->[model name]->restrict('user(email,password)' );
$this->paginate = array(null,'limit'=>'1','order'=>'[model
name].id
DESC');
excellent, this worked well, thanks for your help.
On May 14, 7:08 pm, theChrisWalker <[EMAIL PROTECTED]> wrote:
> DarkAuth assume every controller has access to the User model.
>
> Which is why is recommends adding $uses=array('User') to
> AppController.
>
> If this is not the case, then you'll
Thank you but, I thought my explanation was clear. What do I type
here, my exact steps?
Anyway, I decided to delete the install and start from scratch. A
friend said the files are supposed to be installed in httpdocs. They
were (still are until I delete everything). When you go to the web
page yo
The folder that the html helper points to for images, javascript and
css files is the webroot folder located at cakeroot->app->webroot. So
the img folder that you want to have pasty.jpg in is cake->app-
>webroot->img
I assume there is a way to change where cake looks for the img folder
although I
Have you tried renaming that folder? the TT.CMS to remove the '.' ?
That seems like it might make something unhappy.
~stillboy
On May 14, 1:00 am, ngonchan <[EMAIL PROTECTED]> wrote:
> When I install and develop CakePHP (1.2.0.6311-beta) on
> localhost, it play well. But when I upload it
I use cake 1.2
With cake 1.1.13 it works
On 14 Mag, 09:37, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I try the blog tutorial in cake and all works fine.
> Then I have add the model Tag(with its database table) in HABTM with
> the model Post.
> Now I would set a particular relation between
Many thanks Chris.
Can I ask you if you can help me with
http://groups.google.com/group/cake-php/browse_thread/thread/e450476193fcc39e
Because I'm blocked at this point and I can't go ahead with my work
Many Thanks
On 14 Mag, 15:02, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Wed, May 14, 20
On Wed, May 14, 2008 at 3:04 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> This is my situation:
> I have the same action that can be a normal page or a xml page.
> For example "/posts/view/1" or "/posts/view/1.xml"
>
> If is a normal page I would set Layout ajax.
> If is a xml page I would
Honestly, I don't know what I'd do without you guys.
Thanks!
On May 14, 12:58 pm, "dr. Hannibal Lecter" <[EMAIL PROTECTED]>
wrote:
> $ajax->link($html->image('image.jpg', array(), false), 'http://
> wicked.url/', array(), null, *false*);
>
> API for
> $ajax->link(...):http://api.cakephp.org/1.2
$ajax->link($html->image('image.jpg', array(), false), 'http://
wicked.url/', array(), null, *false*);
API for $ajax->link(...):
http://api.cakephp.org/1.2/class_ajax_helper.html#7e2e659c88c9cd4d833d531417d7ae03
Does the last param help?
On May 14, 12:57 pm, Dovdimus Prime <[EMAIL PROTECTED]>
Here's an updated function to support the good Dr Lecter's idea of
resetting the cookie each time the user logs in. I'm fairly sure it
works...
function loginFromCookie() {
$cookie = $this->Cookie->read('Auth.User');
if (!is_null($cookie)) {
if ($this->Auth->login($cookie)) {
//
In your core.php set your debug level to 2 and look at the sql-log
table output to see the queries that cake is generating.
Also, you may want to post relevant code to http://bin.cakephp.org and
then post the url to your code here, as it will be far more readable
for everyone here.
On May 14, 2:
Sorry to hear you are having problems, but your description of your
problem doesn't really help us to help you. Can you be more specific
as to what is going on?
If you want pretty urls you will have mod_rewrite installed for apache
and then upload the .htaccess files if in fact they aren't upload
Have a look at the "CakePHP Tickets: How To Help" page in the pages
section for this group. There are links to view ticket reports on the
trac site. I would include direct links in this post, but I really
want to encourage folks to check out that page. One of the available
reports is for cookbo
This is doing my head in.
I'm trying to use the ajax link with an image as the link:
$ajax->link($html->image('image.jpg', array(), false), etc);
However, $html->image keeps encoding the html so that the html image
code is displayed on the page instead of the image itself.
How do I get it to d
post your app_controller and routes.php to the bin
On Wed, May 14, 2008 at 10:03 AM, David Christopher Zentgraf
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I ran into this situation:
> I'm using the Auth and Acl components to lock down my system.
> Really limited accounts basically have no right besi
http://antik-guide.de/TT.CMS/
look at the last slash
http://bakery.cakephp.org/articles/view/cakephp-in-a-subdirectory-and-no-trailing-slash
On Wed, May 14, 2008 at 9:00 AM, ngonchan <[EMAIL PROTECTED]> wrote:
>
> When I install and develop CakePHP (1.2.0.6311-beta) on
> localhost, it play w
Sliv: Do you know where I can find information on the Cookbook
development? Things like project info, source, openings, tickets or
similar info. I can't say for sure how helpful I could be. My skill-
level varies greatly with the topic but I would like to have a look to
see if I find anything I th
On Wed, May 14, 2008 at 2:34 PM, Dovdimus Prime <[EMAIL PROTECTED]> wrote:
>
> Hi all
>
> I'm trying to use html->image to place an image on the page like this:
>
> image("pasty.jpg", array(), false); ?>
>
> This results in rendered html like this:
>
>
- Have you placed your app inside 'cake' di
DarkAuth assume every controller has access to the User model.
Which is why is recommends adding $uses=array('User') to
AppController.
If this is not the case, then you'll need to add the User model to
your GalleryController.
That should solve the problem.
Chris.
On May 14, 4:38 am, "(withhel
Hi all
I'm trying to use html->image to place an image on the page like this:
image("pasty.jpg", array(), false); ?>
This results in rendered html like this:
This image doesn't display, because I have no idea where this folder
is in the directory structure (in fact, the folder doesn't exist)
When I install and develop CakePHP (1.2.0.6311-beta) on
localhost, it play well. But when I upload it to a server (Unix,
ofcourse, with .htaccess file) it didn't run right. Mod_rewrite url's
not correct. pls see: http://antik-guide.de/TT.CMS
Maybe the .htaccess in server "fighting" with
hi,
just a simple question. i'm trying to get only Decision.id so my
findAll() should be like this right?
$result = $this->Meeting->Decision->Status-
>findAll('Status.action_date <=
Decision.deadline',array('Decision.id'));
this will give me nothing (execution time > 30 sec). but when i use
this
Hi, yes i realise CSS doesnt see the difference but as i mentioned,
ive not really looked at themeing yet so i dont know how it will
respond. Im using Drupal 5.3 and cake 1.1.6.x (i think) Drake is
causing me some major headaches right now so i would reccomend against
it
All of my scripts (css an
Hi,
I ran into this situation:
I'm using the Auth and Acl components to lock down my system.
Really limited accounts basically have no right besides viewing and
editing their own profile page.
I disabled autoforwarding in the Auth component and set up some
customized redirects:
a) if the use
You probably need to edit your .htaccess files (the routing/
configuration file of the web server, assuming it's Apache). They
catch everything that begins with http://waywww.probolab.com.br/ and
send it to the Cake dispatcher of your main site, which is why the /
test part is interpreted as a con
I try the blog tutorial in cake and all works fine.
Then I have add the model Tag(with its database table) in HABTM with
the model Post.
Now I would set a particular relation between Post and Tag by the use
of finderQuery.
But I discover that it's NOT possible.
I always must have a table with Po
This is my situation:
I have the same action that can be a normal page or a xml page.
For example "/posts/view/1" or "/posts/view/1.xml"
If is a normal page I would set Layout ajax.
If is a xml page I would set Layout default.
How can I do it?
On 13 Mag, 19:54, francky06l <[EMAIL PROTECTED]> w
97 matches
Mail list logo