i set "DocumentRoot d:/xampp/xampp/htdocs/cakephp/app/webroot" in
httpd.conf
i see it ok when i goto http://dp.shttnet.com/jlcargos
but when i click http://dp.shttnet.com/cakephp/jlcargos/view/66,
it show me
"
CakePHP Rapid Development
Missing controller
You are seeing this error because cont
Thanks :) I thought I may be missing some hidden feature, or that it
was a hint of a new 1.2 offering.
For obscuring the emails, one can use the 'encode' option:
linkEmail('Contact Us', '[EMAIL PROTECTED]',
array('encode'=>true)); ?>
In order to reduce confusion, it would probably be best to re
Thanks Jon, that work for me.
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PR
Whew! Glad to help, and glad we solved that! Happy baking...
Eric
On 11/28/06, jskw <[EMAIL PROTECTED]> wrote:
>
>
> Eric,
>
> Per your suggestion, I also installed WAMP server and tried it to run
> cakePHP and it works. After carefully examining WAMP's PHP release
> which is 5.2.0 vs. my existi
OK. I have debug=3 and no debug messages. I used just echo method for
debug and identified that in the file
model_php4.php
and looked at
function read($fields = null, $id = null)
The line that causes the problem is here:
return $this->find($field . ' = ' . $db->value($id,
$this->getColumnTyp
This is cool, thanks for the awesome replies.
On Nov 28, 10:13 am, "Ismael S. Kafeltz" <[EMAIL PROTECTED]> wrote:
> you may want to see this
> too:http://othy.wordpress.com/2006/06/03/unbind-all-associations-except-s...
>
> (this is twice i post this link...)
--~--~-~--~~-
I just did a quick RSS feed for my Very Bad Poetry site (temp. url is
http://www.circletakesthe.com/) and made a simple XML specific layout
with the common tags specifying the document type. Then, the view
outputs the data.
Are you outputting the document declaration stuff in a view or a
layout?
Well, the final choice is always yours. :D
IMO, creting a Model to simulate HABTM would be rough on the programming
side, since you have to define extra logic to save them (e.g., for each
assoc, you need to save it). This is not the case when you use pure HABTM,
just throw in an array, and Cake d
Create your own helper, inherited from HtmlHelper. Then override the
dateTimeOptionTag on you helper. Let me know if any of this needs
explanation.
-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Rodrigo Tassinari
Sent: 28 Nopember 2006 19:52
To:
>
> Following the link "Report a bug" brings a page with the error message
> "TICKET_CREATE privileges are required to perform this operation"
> - I'd report this as a bug, but it's a chicken-and-egg.
>
Maybe I should have linked to the main page of the trac site instead and
said read the last par
"Larry E. Masters aka PhpNut" <[EMAIL PROTECTED]> wrote:
> One thing I would like to ask all people opening tickets is read the wiki
> entry on the trac site for reporting bugs.
> https://trac.cakephp.org/wiki/bugreport
Following the link "Report a bug" brings a page with the error message
"TICKE
Eric,
Per your suggestion, I also installed WAMP server and tried it to run
cakePHP and it works. After carefully examining WAMP's PHP release
which is 5.2.0 vs. my existing PHP release which is 5.2.0-dev, I tried
to reinstall my existing PHP using release 5.2.0. After the new
install of PHP 5.
Thanx mikee for your reply.
Yes, I installed it on subdirectory, in htdocs folder for exactly (I
used XAMPP). I'm gonna try that.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to this gr
There is no spoon, there is no content filter, and the person who wrote
that is no longer on the project. What I think it means, however, is
that email addresses on webpages should be displayed in such a way that
they are obscured from spammers trying to screen-scrape the page.
--~--~-~
OK. I am homne at at the code. There is no findbyid in the tutorial.
The failure is occurring at this controller function:
function view($id)
{
$this->Post->id = $id;
$this->set('data', $this->Post->read());
}
I checked the value of $this->Post->id It is CORRECTLY set
On 11/28/06, Larry E. Masters aka PhpNut <[EMAIL PROTECTED]> wrote:
> Version From VERSION.txt:
> There is a input area for supplying the version number of CakePHP, this is
> located in version.txt in the root directory, I update this version number
> on every merge to the trunk, and it is used a
Hello all,
I just wanted to send a friendly reminder to people who are helping us with
this project by reporting bugs. I think it is great that people take time to
submit tickets so we can continue to improve CakePHP.
One thing I would like to ask all people opening tickets is read the wiki
entry
BTW, that's what google group post ratings are for ;)
On Nov 28, 6:21 pm, "Uncle Bill" <[EMAIL PROTECTED]> wrote:
> Excellent!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to this grou
Sure, you are welcome. I know how painful SQL queries can be, but at the
same time it is a beautiful subject.
The final version of the query (as you inserted below) can be used as a
source of information to get findAll().
Sounds like an interesting application you're building there.
Congratulati
Hey Dave,
i double checked all files from cake and none have a space after any
php close tag (if there was it should/does generate an error, depending
on which file its in of course).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
Check you files for blank lines after ?> at the end of the file. You
need to check any files that may be included, not just the file
creating the output.
Remember that Apache will render these as output
--~--~-~--~~~---~--~~
You received this message because you
nice!! thnkx for the info.
Havent still tried out Cake 1.2
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this
Excellent!
Or (to cut this down to only a WHERE clause that I can feed to
findAll() ):
SELECT * FROM `posts` WHERE `revision` in (SELECT MAX(`revision`) FROM
`posts` AS `p2` WHERE `p2`.`post_id` = `posts`.`post_id` GROUP BY
`post_id`);
Very cool; I didn't realize you could that sort of embedded
This was implemented in Cake 1.2 a while ago:
var $default = array(
'login' => 'root',
'password' => '',
'database' => 'my_db',
'encoding' => 'UTF8'
);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Group
I'm running to the same exact error, if anyone has any more input on
this i'd appriciate it. I've been search everywhere i can think of to
find some sort of answer/reason/workaround for this.
i tried to flush the output buffer, but that isn't helping the
situation.
also, its not a matter of the co
Hi everyone,
i was hoping beyond hope that someone may have run into this situation
or knows about it. either way i just need a little love.
I've basicly have a view which is returning xml and in my layout file
(xml.xml) i try to set the header content type, but it won't change.
i also see a white
'driver' => 'sqlite',
'database' => '/path/to/database/file'
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this
Unfortunately, that didn't help me too much. Here is my code:
uses('sanitize');
class AppController extends Controller {
var $components = array( 'rdSimpleAuth' );
var $rdAccess = '*'; // this will protect every page except the
loginPage.
var $Sanitize;
function __construct() {
$
Got it:
SELECT `p`. * FROM `posts` AS `p`
WHERE
`revision` IN (
SELECT MAX( `revision` ) AS `revision` FROM `posts` AS `p2`
WHERE `p2`.`post_id` = `p`.`post_id`
GROUP BY `post_id`
)
This gives you:
id post_id revisiondata
-
Ok, I've got a solution, but it feels ugly to me. does anyone have
suggestions:
select * from posts where post_id*1000+revision in (select
post_id*1000+max(revision) from posts group by post_id);
So, this is all in a where clause, so I can use findAll(), and it
returns all of the latest revision
Thanks, Mariano.
However, I'm looking to pull in a whole record for the given $post_id.
If I extend your suggestion to
SELECT post_id, MAX(revision), data
I get the data from the older records. Because MAX(revision) is the
field returned, not the WHERE clause.
Also, I'm hoping to take advantag
Thank you all, now I have a better ideia what to do!
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from this group,
Anybody using sqlite with Cake? Where do you put the database? How do
you configure the database.php file for sqlite? So far, I can't get
cake to find my database.
Thanks!
hydra12
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
you may want to see this too:
http://othy.wordpress.com/2006/06/03/unbind-all-associations-except-some/
(this is twice i post this link...)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post
>> return $this->findAll($conditions, $fields, null, null, null, 0);
That last argument, which you have set to 0, is the level of
recursiveness for queries. You need that set to 1 or greater to
retrieve HABTM-related models.
--~--~-~--~~~---~--~~
You received t
Can you post your form HTML code to the paste bin for us to look at.
Thanks mate,
mike
On 29/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> when use GET method ,it always add ?= in the link ,and I cannot use
> substr($foo,2) to get through this problem?
>
> what am I supposed to do?
>
>
Duh :) Well the articles got published. You have a point. I do have a blog:
http://www.MarianoIglesias.com.ar
but work keeps me from updating it regularly.
But I will add a section CakePHP so I can start adding things there before
they get approved. And when they do, remove the contents and ins
I've read that article (you can see I added a comment)
I was actually talking about speeding up *that* process. :)
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and
Morning mate,
I had this problem to begin with.
By turning debug to 2, which you have done, you can see how Cake
retrieves it's HABTM associated data. I'm pretty sure it doesn't
actually do it using a single array so applying conditions for both
`This` and `That` will not work.
When I want to g
What is a "Content Filter"?
I ran across this deprecated message in the HtmlHelper::linkEmail API:
HtmlHelper::linkEmail (
$title,
$email = null,
$options = null
)
Deprecated:
This should be done using a content filter. Version 0.9.2.
Any documentation? I have tried searching the usual
It finally got approved. You can see this component at:
http://bakery.cakephp.org/articles/view/168
-MI
---
Remember, smart coders answer ten questions for every question they
ask.
So be smart, be cool, and share your kno
Christoph ha scritto:
> I'm having a bit of difficulty fully setting this component up. I've
> seen the wiki, I've seen (what little) documentation on the cakeforge
> site and it does a good job of showing the login() action. However,
> nothing I've seen describes how to limit access to other a
hi adrian and marcelo
you're probably right about the "feasibility" of customizing HABTM infos.
then, to me, the solution would rather to make one single additional
model (say : EventStoreRelation) that would "simulate" the HABTM table
:
it would belongTo both one Event and one Store, and would
SELECT `post_id`, MAX(`revision`) AS `revision` FROM `posts` GROUP BY
`post_id`
That gives you:
post_id revision
1 3
2 2
3 1
Your query
SELECT MAX(revision) FROM posts WHERE post_id=$post_id)
Sounds good to me. Or if you want the rest of the data you could do:
SEL
You wouldn't be sending contents from your controllers as echo statements,
would you? Remember that from your controllers you should set variables that
will be picked up by your view.
-MI
---
Remember, smart coders answer t
I'm having a bit of difficulty fully setting this component up. I've
seen the wiki, I've seen (what little) documentation on the cakeforge
site and it does a good job of showing the login() action. However,
nothing I've seen describes how to limit access to other actions. If I
have the roles of,
Ok,
I have readed it, but I still don't understand it...
I have just started and I'm not very good in it.
with this code:
$this->Model->saveField('fiedl', value, true)
cake checks the correct format of the new value, if the format is wrong
it doesn't save the new data, and in a normal view (wi
if it is the only relation then you can use
$this->ModelName->recursive = -1; // undoes all relations
if it is one of many relations and that is the only one you do not want try
$this->ModelName->unbindModel(array('hasMany'=>array('Image')));
On 11/28/06, Kesher <[EMAIL PROTECTED]> wrote:
>
>
when use GET method ,it always add ?= in the link ,and I cannot use
substr($foo,2) to get through this problem?
what am I supposed to do?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post t
On Nov 28, 4:46 am, "nate" <[EMAIL PROTECTED]> wrote:
> I think you're thinking of the startup callback, which gets called
> after beforeFilter.
Yup, that's the one. I found for example that you can't call
obAuth::lock() from a beforeFilter because of this.
--~--~-~--~~~
My latest problem: I can get data from my HABTM with:
$this->set('x', $this->thing->findall())
but can't when using a more specific custom model:
$conditions = "(This.that_id = '1') AND (That.active = 'y')";
$fields = array('This.name', 'That.name');
return $this->findAll($conditions, $fields, nu
Hi, maybe this is obvious but I don't know how to do it. I have the
table "news" which hasMany of the "images" table.
The question is: how can I findAll the news without selecting the
images table at all? Speed reasons
Thanks you bakers
--~--~-~--~~~---~--~~
Y
problem solved!
i just needed to query the "SET NAMES 'UFT8' " for the database results
to come in utf8.
Therefore i just need to put the above query before the execution of
the select query to the "cake_sessions" table.
--~--~-~--~~~---~--~~
You received this
I found a fair answer to this in the comments on this article:
http://bakery.cakephp.org/articles/view/56
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to this group, send email to cake-
Is the second solution feasible? I mean AFAIK, if you stick to the default
CakePHP implementation of HABTM, you can't have any other field other than
the two PK/FK fields.
Take a look at how CakePHP handles saving HABTM assoc from the manual.
If you want to "relate" model A with model B, when sa
Hi all,
I'm using the Html Helper to generate some form fields in my
applications. However, I need to make some changes to the
dateTimeOptionTag() function to cater to my specifc needs.
What is the best way to do this?
At first I tried to copy html.php from cake/libs/view/helpers to
app/views/h
Found the problem.. i needed to define the query("SET NAME 'UTF8' "),
for the return of database in utf8, before the select query of
cake_sessions..
That was why all sesison values with special chars got NULLed..
Hope that bakers could initiate this type of " utf8 spec" as an option
of the db obj
Have u tried this?
$this->ClassName->invalidate('fieldname');
That should cause the errorMessage tag to show up.
Michael
On Nov 28, 5:18 pm, "carlosrg" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using ajax->editor to update some fields of a table.
>
> How can I send an error message, for example
clemos wrote:
> what blog tutorial are you talking of ?
> can you give the url ?
The Blog tutorial is from APPENDIX A page 111 of the latest pdf version
of the manual. I got the manual here:
http://cakeforge.org/frs/?group_id=53&release_id=154
>
> Maybe I'm totally mistaking, but I noticed prob
Solved my problem 2. I have to find a way to put the query "SET NAMES
'UTF8' " running before the select query to cake_sessions.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to this gro
On Nov 27, 10:36 pm, Matt Adams <[EMAIL PROTECTED]> wrote:
> You're likely going to want to look at iterating over your data set if
> it's of any large size (1000's of records or more).
And if your'e running a recent enough version of PHP, fputcsv() is your
friend.
--~--~-~--~~---
not work :( neither div /div span /span
On 11/27/06, Alex <[EMAIL PROTECTED]> wrote:
>
>
> > Drop
>
> hi,
>
> seems that you've a typo ("span")
>
>
> >
>
--
[]'s
Fábio Espósito Pires
(11) 9248-
--~--~-~--~~~---~--~~
You received this message because you a
Thanks to the advice I have solved the problems with the BOMs.
Unfortuneately working in UTF-8 is giving me a whole new class of
problems. All the places where i manipulate and validate strings in my
code that rely on using the strlen no longer work.
I'm investigating using mbstring although it n
http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor
--~--~-~--~~~---~--~~
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@googlegroups.com
To unsubscribe from
more than a rant, i need help with using afterFind(), there's not much
documentation about it around. so, if you please, kindly provide some
points for optimizing my afterFind()s. thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
I've read quite a few posts related to error handling with cake but
still have'nt managed to work out the best way to handle the following
type of error.
There are many cases where a controller method may have been called via
an URL without the correct parameters being passed. (For example
http:/
hi john
what blog tutorial are you talking of ?
can you give the url ?
Maybe I'm totally mistaking, but I noticed problems with functions
such as Post->findById with some of my servers... maybe some php4
version problems...
so I don't use those anymore, and prefer things like Post->find()
Maybe
Hi clemos, thanks for the reply and for sharing your thoughts :)
On 11/28/06, clemos <[EMAIL PROTECTED]> wrote:
>
>
> hi marcelo
>
> I'm not really a guru, but your second solution looks the best to me.
> Then, if the "relationship_types" don't need to be editable, you can
> just let them "static"
hi marcelo
I'm not really a guru, but your second solution looks the best to me.
Then, if the "relationship_types" don't need to be editable, you can
just let them "static".
For exemple you can define them as an array in your Event model :
$store_types = array(
0 => "regular seller",
1 =>
So... anyone ? :(
On 11/27/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote:
>
> Guys, I really need a hand here!
>
> Let's say I've got two models:
>
> * Event -> Represents a party event
> * Store -> A store where the user could buy a ticket to the party
>
> A user wants to go to a particul
In the US most us took a holiday. Normally, articles can take up to two
days to be reviewed.
This might give you a little more info:
http://bakery.cakephp.org/articles/view/76
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Googl
Hi,
I'm using ajax->editor to update some fields of a table.
How can I send an error message, for example when the field has a wrong
format?
Thanks a lot!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cake PH
thnkx for the reply samuel..
i didnt try with the setting in php because i wanted to use in the
database. All other variables and values in the session worked (like
authentication params, etc). But when a string have a special char it
disapears in the next redirect to Null.. I just dont understand
Hello All,
I'm having trouble building a condition for findAll().
I have a model of post revisions. There are post_id's, and for each
post_id, there are one or more revisions. Here's what it looks like:
id post_id revision data...
1 1 1 blah
2 1 2
Why don't u blog about it as well MI? That way the people who are
looking for (already available stuff) can make use of it. Thoughts?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to thi
Hi all,
I have a question regarding the layout of cakephp views in a div.
when i want to show some data in a div and apply some css layout to it,
it seems that the data is not in the div.
i don't have this problem when i just type some text in a view. This
stay's in the div but when you want to
Seems the code is right.
What is your products table?
It should have:
id name related_id... ..
Hopes it helps!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cake PHP" group.
To post to this group, send email
77 matches
Mail list logo