Great! I will check if this is waht I've been looking for
Thank you, Gwoo!
--~--~-~--~~~---~--~~
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
To me there seem to be 3 possible orders: C-E-D, C-D-E, E-C-D.
Then in that edge case, you simply modify either migrations
themselves, or the timestamp, so that the order is correct.
One of the best things about Migrations, is that they are fully
incremental, and each one can be rolled back
On May 20, 3:36 am, Matt Huggins [EMAIL PROTECTED] wrote:
I'm trying to import a vendor class, but the class I'm importing in
turn references another 3rd party class named cache. Since there is
already a CakePHP class named Cache, I get an error message stating
Fatal Error: Cannot redeclare
Hello,
I'm using admin routing for a personal site that I'm building:
mrjoelkemp.com. Admin routing was working on the appropriate modules
(namely software and writing), however, oddly, it seems that over the
past week the routing has been failing on the writing module, but not
the software
Ugh, I'm screwed if there's nothing I can do about this now. :/
On May 20, 1:51 pm, jonknee [EMAIL PROTECTED] wrote:
On May 20, 3:36 am, Matt Huggins [EMAIL PROTECTED] wrote:
I'm trying to import a vendor class, but the class I'm importing in
turn references another 3rd party class named
Hi, I'm a new cakephp developer... I'm trying to connect to an Oracle
db but it doesn't work. I use a native oracle driver and my connection
parameters into the database.php file are:
var $default = array('driver' = 'oracle',
'connect' =
Hi!
I couldn't get the delivery=debug working. But I now found out, that
if I set sendAs to 'html' or 'text' instead of 'both' the email is
received with a correct mail body. I finally found this ticket
https://trac.cakephp.org/ticket/1851 that describes something
similiar. But as I use a fresh
Hi.
If you look at most web sites you will see that their index pages are
generally a mish-mash of different functionality. For example, they
might give a summary of recent blog posts coupled with other
statistics, all relating from various models in the system.
How does this fit into the
Hi, for debug... it doesn't print now.. They changed the code for
debug, so now it is only put in the Session variable. So to print out
in the controller just for debugging to do this...
pr($this-Session-read('Message.email'));
Earlier in the code, they had the 'echo $fm' statement which is now
Well here's the deal...
I played around with Schema a bit last night. I have only a few
issues with it in practice:
1. It doesn't handle autoincrement correctly in the latest nightly
build when you generate a schema from an existing table.
2. The downloadable 1.2 beta has major bugs in it
It'd be great if schema arrays could include an old_name field, so
that CakePHP could not only create fields and create tables, but
rename them. In other words, something like:
class BlogSchema extends CakeSchema {
public $posts = array(
'id' = array('type' = 'integer', 'null' =
I've been using CakePHP for almost 2 years now, and I still don't know
what the best way to do this is. The way I do it is I end up creating
an added action in one of my controllers, and I change the routing for
the homepage to point there. I'd really like to know of a better
approach to this,
Hello, I am a big fan of Cake. Recently I have been having to use
other MVC frameworks and came across a couple bits that I would love
to see duplicated in Cake (my framework of choice).
- Symfony function name caching
When Symfony is in development mode it compiles an index of every
function
I've tried to get a few known forums (phpBB, SMF, etc.) to integrate
into my custom CakePHP CMS, but I'm having so much difficulty. I was
trying to see if anyone has made a forum coded in CakePHP that I can
plug into my app, but of course a Google search for cakephp forum
results in forums
you might look in cakeforge.org
On Tue, May 20, 2008 at 3:18 PM, Matt Huggins [EMAIL PROTECTED] wrote:
I've tried to get a few known forums (phpBB, SMF, etc.) to integrate
into my custom CakePHP CMS, but I'm having so much difficulty. I was
trying to see if anyone has made a forum coded in
I tried. There's one project that's intended to help integrate phpBB
with CakePHP, but it's outdated. Then there are 2 forum projects from
last year that only had a couple updates and have no files available
for download.
On May 20, 5:21 pm, Samuel DeVore [EMAIL PROTECTED] wrote:
you might
Why not Cake_*ClassName* convention? Like Zend.
On Tue, May 20, 2008 at 3:51 PM, jonknee [EMAIL PROTECTED] wrote:
On May 20, 3:36 am, Matt Huggins [EMAIL PROTECTED] wrote:
I'm trying to import a vendor class, but the class I'm importing in
turn references another 3rd party class named
On May 20, 2008, at 4:36 PM, Renan Gonçalves wrote:
Why not Cake_*ClassName* convention? Like Zend.
BecauseZendHasReallyLongClassNames.
(imho)
-- John
On Tue, May 20, 2008 at 3:51 PM, jonknee [EMAIL PROTECTED] wrote:
On May 20, 3:36 am, Matt Huggins [EMAIL PROTECTED] wrote:
I'm
In terms of adding small pieces of functionality I tend to use a
mixture of requestActions and renderElement.
For example in an ecommerce site I may use $categories = $this-
requestAction('/categories/index'); to retrieve the categories and
display them on the index page.
Same would apply for
Does anyone have any idea what causes this. I'm trying to run the
console and I keep getting this output.
Welcome to CakePHP v1.2.0.6311 beta Console
---
Fatal error: Class 'Behavior' not found in my app pathcake/console/
Hi!
I have my web statistics in www.mydomain.com/statistics
When I try to open that url cake of course looks for a ststistics
controller. How can I open the real url? Do I have to change
the .htaccess?
Donnerbeil
--~--~-~--~~~---~--~~
You received this message
I am trying to create a controller that acts similar to that of which
you find commonly on blogs. I want the user to be able to type
http://www.example.com/2008/05/20/, http://www.example.com/2008/05/,
and http://www.example.com/2008/ to be directed to an archive for the
current day, month, and
Hi all,
I've just started playing with CakePHP have found that, because I'm
not using a domain name to access my site, but instead using a sub-
folder, the HTML helper is using / as the webroot, rather than the sub-
folder the site is in.
Any advice on how to correct this welcomed.
Thanks,
T
On Tue, May 20, 2008 at 7:07 PM, Travis [EMAIL PROTECTED] wrote:
I am trying to create a controller that acts similar to that of which
you find commonly on blogs. I want the user to be able to type
http://www.example.com/2008/05/20/, http://www.example.com/2008/05/,
and
Well here's the deal...
I played around with Schema a bit last night.
I'm really happy now :P
I have only a few
issues with it in practice:
1. It doesn't handle autoincrement correctly in the latest nightly
build when you generate a schema from an existing table.
It's working for me
Ok, since I wrote CakeSchema, I suppose I could elaborate on some of
its uses. I think most people have understood what it was intended to
do, though I have not thoroughly read all of the previous messages.
The basic idea behind CakeSchema is to have a complete snapshot of
your application's
When I try to open that url cake of course looks for a ststistics
controller. How can I open the real url? Do I have to change
the .htaccess?
This is one example of how you could set up the htaccess ignore rule:
http://bin.cakephp.org/saved/32472. In this example, /stats is the URL
to ignore.
To me there seem to be 3 possible orders: C-E-D, C-D-E, E-C-D.
Then in that edge case, you simply modify either migrations
themselves, or the timestamp, so that the order is correct.
I don't think that two developers working in parallel can be
considered and edge case, and being that a
On Tue, May 20, 2008 at 5:41 PM, Aaron Shafovaloff [EMAIL PROTECTED] wrote:
It'd be great if schema arrays could include an old_name field, so
that CakePHP could not only create fields and create tables, but
rename them.
Get my drift? If we could somehow tell Cake the history of a
For example,
you may want to provide a simple web based installation for you
application. Well, with a few lines of code you could make that
happen.
I'm already doing that (borrowed the code from the schema shell).
Schema rocks!
--~--~-~--~~~---~--~~
You
https://trac.cakephp.org/ticket/4714
Whitespace coming from EmailComponent. Haven't found where yet.
-Ben
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
I am building a desktop php application for a local business. They
need to be able to take photos of customers with a webcam and then
save the image to a corresponding entry. Does anyone know of a Flash
tutorial or open source program where a photo can be captured with the
webcam and then send
Email component loads all your helpers in as part of it's rendering of
the email view into a variable.
This causes the helpers to be included along with any whitespace they
may have.
So deeply hidden whitespace issues with EmailComponent = Helpers with
whitespace
-Ben
On Tue, May 20, 2008 at 10:10 PM, Mr-Yellow [EMAIL PROTECTED] wrote:
Email component loads all your helpers in as part of it's rendering of
the email view into a variable.
This causes the helpers to be included along with any whitespace they
may have.
So deeply hidden whitespace issues
I modified your dbo_informix.php file as follows:
function connect() {
$config = $this-config;
$connect = $config['connect'];
$this-connected = false;
$host = $config['database'] . '@' . $config['host'];
//modified by mark
$argHostname =
Set a RewriteBase condition in your .htaccess files in app/.htaccess
and app/webroot/.htaccess.
On May 20, 7:49 pm, Tobes [EMAIL PROTECTED] wrote:
Hi all,
I've just started playing with CakePHP have found that, because I'm
not using a domain name to access my site, but instead using a sub-
Hi everyone,
I have been having terrible luck trying to find anything in the new
book, I've been pulling my hair out while using it, does anyone have a
copy of the tempdocs? I found them very useful and I could find all
the information with a quick search in my browser, now I have to
navigate
In the sidenav under Menu you can click All In One Page:
http://book.cakephp.org/complete/3/the-manual
On May 21, 12:12 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Hi everyone,
I have been having terrible luck trying to find anything in the new
book, I've been pulling my hair out while
Yes, I would like to display the data differently depending on the
attributes passed in.
On May 20, 6:16 pm, Jonathan Snook [EMAIL PROTECTED] wrote:
On Tue, May 20, 2008 at 7:07 PM, Travis [EMAIL PROTECTED] wrote:
I am trying to create a controller that acts similar to that of which
you
I am getting:
Warning: file_put_contents(/home/emmettbr/public_html/CakePHP/
opinionsofamateurs/tmp/cache/models/
default_emmettbr_toreadandtowrite_list) [function.file-put-contents]:
failed to open stream: Permission denied in /home/emmettbr/public_html/
CakePHP/cake/basics.php on line 936
I use the $form-create method in 1.2 like so:
?php echo $form-create(null,array('url' = array('controller' =
'pages', 'action' = 'contact'), 'id' = 'ContactMiniForm', 'default'
= false, 'type' = 'post')) . \n; ?
and the outputted HTML includes a div set to 'display:none' :
form
I'm trying to import a vendor class, but the class I'm importing in
turn references another 3rd party class named cache. Since there is
already a CakePHP class named Cache, I get an error message stating
Fatal Error: Cannot redeclare class cache in [filename].
Does anyone have any clue how I can
Hi,
Myself vishal facing a problem while uploading the
image.Actually the image path stored in the database.I want to dispaly
that uploaded image on front.
This is my code :
add.ctp file
h1Add User/h1
?php
echo $form-create('User', array('action' = '');
echo $form-input('name');
echo
Yes, that's basically what is happening. Even when using saveField
(with the validate parameter set to true), which only saves a single
field of a model, the entire model is validated based upon whatever
field names are specified in the model's $validate variable.
On May 19, 10:39 pm, David C.
Thanks jonknee, I didn't even consider the 'on' key in my validation
rules. I'll have to go back to this and see if that solution works
better than the modification I made to app_model.php that I posted
above. :)
On May 19, 10:40 pm, jonknee [EMAIL PROTECTED] wrote:
Does anyone have any
Ignore that, i didn't do enought testing before posting this. The
problem is still there, but i have more info.
In my users controller:
$this-User-Conversation-findAll() works, but retieves all the
conversations, not just the ones for a certain user
Ketan Patel wrote:
Looks like you don't know what you are trying to do here. Read the
manual. As you don't have a clue what a model and controller is. In
your code, you are importing the User model and then calling the
action of the users controller. On top of that, this is not the way to
do
Hi guys.
I just tried to setup a HABTM relationship between Model and
Parts. In my Model model. I already created tables called
'models', 'parts', and 'models_parts'.
Here's what I have in my models:
- model.php
class Model extends AppModel {
var $name = 'Model';
var
Added a link to Facebook application development with CakePHP
Click on
http://groups.google.com/group/cake-php/web/cakephp-unofficial-resources
- or copy paste it into your browser's address bar if that doesn't
work.
--~--~-~--~~~---~--~~
You received this
According to this link
http://dev.mysql.com/doc/refman/5.0/en/commands-out-of-sync.html; the sql
result set should be freed from memory in order to execute consequent
queries after each other, am not sure if this is a bug in CakePHP or not but
it seems that the result set is not being freed from
On 20 May 2008, at 16:48, oana wrote:
$this-User-Conversation-findAll() works, but retieves all the
conversations, not just the ones for a certain user
True. Even though it looks like you're working on a User's
Conversations,
$this-User-Conversation-findAll();
and
You need to modelize your HABTM table. Hopefully this link will help
you out.
http://cricava.com/blogs/index.php?blog=6title=modelizing_habtm_join_tables_in_cakephp_more=1c=1tb=1pb=1
On May 20, 3:04 am, Reza Muhammad [EMAIL PROTECTED] wrote:
Hi guys.
I just tried to setup a HABTM
Hi,
Myself vishal facing a problem while editing.when i edit the
layout changes. so anybody help me please..
But in case of add it look well.
This is the details of the file:
Layout file:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
Thanks for the link.
I did modelize my HABTM table, now I have a ModelsPart model, and it
has a $belongsTo to Part and Model.
Unfortunately, getting related parts when I'm using find() or
findAll() in ModelsController doesnt work, but I can get related
models from PartsController.
Any
In the end my solution was to copy the paginator helper class to my
application helpers directory, then in the sort method swap every
instance of asc and desc. It's not a great solution, but it works.
I'd love to hear about better solutions to get the initial sort
direction to be desc instead of
it's due to Cake routing and URL rewriting
in some cases, prefer HTML helper instead your own HTML
in your layout, change
link href=../../app/webroot/css/style.css rel=stylesheet
type=text/css /
by
?php echo $html-css('style') ?
and change al
IMG SRC=../../app/webroot/img/your_image.gif
by
Hello everyone,
I would like to know iwhat would be the way to follow if i want to
create a file from within a cakephp page.
The situation is like this: i have a view which shows an applet (this
applet holds a graph which describes a conversation from an xml file;
the applet loads the correct
Thanks you very much my friend...!!! I have done the changes my
problem is solved..!!!
thanks you very much..
friend can you help me in this matter also if you have few minutes for
me..??
I have problem in uploading the image..I want to display the image as
well as store the image in
He addresses the answer in that post. You don't label the migration
sequentially. You label it based on UTC timestamp as the race
condition where 2 developers generate a migration at exactly the same
moment is highly unlikely. Rails 2.1 is going that way (http://
Thanks for the explanations, i am starting to get used to how cake
works. :)
And about the solution, i am so ashamed ...it was one line of code i
forgot to delete from the user login function.
This line was doing an update in the users table, which affected the
join table too.
I haven't seen
Hi,
My swf file is located in /app/webroot/files/main_flash4.swf
But I don't know the correct code how to display this flash on fron
end i.e on layout page.
my layout file is :
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
You mean the fieldset? That's by design. There's no elegant override
afaik.
On May 20, 1:13 am, Brian Rojas [EMAIL PROTECTED] wrote:
I use the $form-create method in 1.2 like so:
?php echo $form-create(null,array('url' = array('controller' =
'pages', 'action' = 'contact'), 'id' =
Have a look at the File class:
http://api.cakephp.org/1.2/class_file.html
On May 20, 6:35 am, oana [EMAIL PROTECTED] wrote:
Hello everyone,
I would like to know iwhat would be the way to follow if i want to
create a file from within a cakephp page.
The situation is like this: i have a
Looks like your tmp folder isn't writeable by your web server
On May 20, 3:12 am, Raistlin Majere [EMAIL PROTECTED] wrote:
I am getting:
Warning: file_put_contents(/home/emmettbr/public_html/CakePHP/
opinionsofamateurs/tmp/cache/models/
default_emmettbr_toreadandtowrite_list)
Hi,
The bit of code you pasted does give the impression that you have some
things mixed up. For an example of simple user login, read
http://book.cakephp.org/view/327/simple-user-authentication .
--~--~-~--~~~---~--~~
You received this message because you are
Hi,
I am new on this community..can any body help me for paging.
this is my file:
h1 style=padding-left:100px;Admin Panel/h1
p style=color:#FF?php echo $html-link('Add User', 'http://
192.168.0.60/vishal/cake_1.2.0.6311-beta/app/users/add'); ?/p
table width=90% cellpadding=5
This has been discussed here before, look for the thread.
If my memory is good, it was needed for validating as XHTML Strict and
solution was to edit the source code of the helper.
On Tue, May 20, 2008 at 2:13 AM, Brian Rojas [EMAIL PROTECTED] wrote:
I use the $form-create method in 1.2 like
Start here:
http://book.cakephp.org/view/164/pagination
And the next time you need to paste such a lng chunk of code,
pleas use the paste bin : http://bin.cakephp.org .
On Tue, May 20, 2008 at 9:57 AM, vishal [EMAIL PROTECTED] wrote:
Hi,
I am new on this community..can any body
Hi,
just do as you would do if you were not using cake, but better if you
get the url for the file with:
$flashUrl = $form-url('/files/main_flash4.swf');
Please, next time use the paste bin : http://bin.cakephp.org
On Tue, May 20, 2008 at 9:08 AM, vishal [EMAIL PROTECTED] wrote:
Hi,
you're welcome
I'll try to answer your questions, but I've got some warns before:
- in your view, the action of your form is wrong
'action' = '/add/index'
should be
'action' = '/users/add/'
- you changed your flash call in 'edit' action, but not in others
And now, to upload your image:
Your
Hi,
My app contains a User model and an Activity model. A User belongsTo
an Activity. The foreign key is activity_id.
Now, I want to make a list of popular activities where popularity is
measured by how many users are signed up for it. I'm not sure how to
do this. Can I use
$this-Activity-bindModel(array(
'hasOne' = array(
'TotalUsers' = array(
'className' = 'User',
'fields' = 'COUNT(TotalUsers.id) AS num_users'
)
)
);
$popularActivities = $this-Activity-find('all', array(
'conditions' = '1=1 GROUP BY Activity.id HAVING num_users 0',
Thanks for the replies jonknee and 3lancer.eu,
The generated HTML is a style tag that is inserted into each page, so
this:
style type=text/css media=all
#header_right { background: #FFF url(?php echo IMAGES_URL; ?
base/
rotate/?php echo $imgBase;?/?php echo $session-
Filip Camerman wrote:
Hi,
The bit of code you pasted does give the impression that you have some
things mixed up. For an example of simple user login, read
http://book.cakephp.org/view/327/simple-user-authentication .
The problem with the example is that it is to simple !
First I don't
You do not have the concepts clear based on your comments. However do
this.
Create an element that shows the 'users login' form (which should be
handled by only one controller, 'users' in this case) if the user is
not logged in. Then on view/layout just call this element and you will
have the
There is a delivery option for debug in the EmailComponent.
$this-Email-delivery = 'debug'; //'smtp';
Use that for development and testing of the emails. With 'debug'
option, you will see your email content print out on the page itself
which helps in faster debugging. Once you are happy with
You can put the authentication in users_controller.php, make an
element in app/views/elements that has your login form.
Put the login form anywhere using $this-element(). When you call
your authentication, store the current url in a session and after
success, redirect to that URL. Or use ajax
How (if it's possible), can I limit the controllers allowed to go
through the /training dir? I only have four controllers that I want
to have access to the /training dir, all other requests should show an
error, or better yet, redirect to the proper controller directory.
I'm not sure but
Hi!
Here is my send function in users_controller.php
The $id is given from another function. I debug($id) and it's ok.
function _sendNewUserMail($id) {
$User = $this-User-read(null,$id);
$this-Email-to = '[EMAIL PROTECTED]';
$this-Email-bcc = array('[EMAIL
@Ketan
My new send function looks now like that:
function _sendNewUserMail($id) {
$User = $this-User-read(null,$id);
$this-Email-to = '[EMAIL PROTECTED]';
$this-Email-bcc = array('[EMAIL PROTECTED]'); //
note
Thank you so much! I'm still not entirely sure about how it works, but
I'll be reading up on bindModel :)
I've taken a look at counterCache and yes, it looks much easier. I'll
consider using it instead.
Again - thanks!
On 20 Maj, 15:41, grigri [EMAIL PROTECTED] wrote:
I'd have thought this would work:
style type=text/css media=all
#header_right { background: #FFF url(?php echo Router::url('/img/
base/rotate/'.$imgBase.'/'.$session-read('sessionImg.'.$imgBase)); ?
) 0 0 no-repeat; }
/style
--~--~-~--~~~---~--~~
You received
ok, now i got it done :-)
it turned out that calling consequent stored procedure using $model-query(
$queryStr ) is causing memory issues through the execution of the controller
accessing the target associated model, to solve this issue i have created a
method inside my user defined model, call it
Hey guys, i got a problem with the formhelper::error.
I'm know tryin for 2 days to fix this problem:
The validation in the code below works fine. if the field is empty the
setFlash-Msg appears and the data isn't saved.
But the error message doesnt appear.
MODEL
On May 20, 10:43 am, grigri [EMAIL PROTECTED] wrote:
I'd have thought this would work:
style type=text/css media=all
#header_right { background: #FFF url(?php echo Router::url('/img/
base/rotate/'.$imgBase.'/'.$session-read('sessionImg.'.$imgBase)); ?) 0 0
no-repeat; }
/style
And
If I understand correctly, you want to be able to find parts that
belong to a common model from your Model controller.
First, you should add in the 'with' parameter to your Parts model and
Model model (say that a couple times fast). In your PartsModel:
'with'= 'ModelsPart' and similarly in your
Kyle,
Thanks that is what I ended up doing just wanted to make sure that was
the right way to do things.
On May 19, 6:41 pm, Kyle Decot [EMAIL PROTECTED] wrote:
This is how I do it. In my layout I have:
?php if(isset($metaDescription)) { echo metaname = 'description'
content =
Without using $form-error, cake will default to displaying the error
unless you set 'error' = 'false' so you do not have to use $form-
error.
You can then define the error message in your model:
var $validate = array(
'firstname' = array(
'rule' =
Both of those options seem like they would work perfectly.
I think I will implement the array version for my needs right now, and
look at the prefixing as a cleaner, more 'Cake' way in the future (I'm
on a deadline right now, and need something quick).
Thanks to you both.
Hi,
I am currently working in a software system whose modules reside in
different servers. Is there a way that Cake could use actions from
remote controllers without breaking the neat syntax it has?
Every idea is welcome!
Best Regards,
Mateo
yes i know,
i tested that but the the error message still doesnt appear.
i really get headaches right now...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
Hi.
I am looking arround now for quite a while now (code and forums) but
couldn't find anything by now, so i'll make that post:
I am transfering many applications from cake 1.1 to cake 1.2. While
doing so, i thougth cleaning up would be a nice thing. so i figured
out a structure where i can
http://c7y.phparch.com/c/entry/1/art,cakephp-rest
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send
I work for a web design agency in NW London, UK.
We have been searching for a cakephp developer for 6 months now with
no joy. Even a sound php developer with limited MVC experience would
be good. We have spent around £2k on recruitment agency fees all with
no joy.
Does anyone know a good place
On May 20, 2008, at 11:23 AM, eagerterrier wrote:
I work for a web design agency in NW London, UK.
We have been searching for a cakephp developer for 6 months now with
no joy. Even a sound php developer with limited MVC experience would
be good. We have spent around £2k on recruitment
Some times I want to add some methods or common attributes to all
Cake's objects. We know that most of the classes are extended from
class Object. But there are not something like AppObject as a AppModel
style API for us to extend objects. I dug deep into Cake's core
source. Finally I found Cake
96 matches
Mail list logo