i try sent email by
$this-Email-to = $email;
$config['Email']['from'] = 'andrzej.borkow...@lowcy.com.pl';
$config['Email']['fromName'] = 'a.borkowski';
$config['Email']['port'] = '110';
$config['Email']['host'] = 'poczta.hti.pl';
$config['Email']['username'] = 'andrzej.borkow...@lowcy.com.pl';
I've started to get logged out of my website every couple of minutes
and I'm not really sure why. I set the Security level to low but that
didn't help any. It doesn't really happen on any particular part of my
site, just kind of random. Any ideas on how I can determine what's
causing this? Thank
Sure you can,
If you want to do that you need to read all the params (func_get_args)
and make your custom logic.
I took this code from the bakery in order to do this example. Hope
this helps:
function display() {
if (!func_num_args()) {
I've tried to think of several ways to build a cms in cake.
But every system I could think of depended a lot on plugins.
One system might use several plugins with one page load and that would
be quite slow cause you needed to use requestAction() a lot. (In that
system plugins weren't like
Ok, some people told me I didn't need to use requestAction as much as
I thought.
I'll try to build a cms with plugins by only using it's models and
elements..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP
It really depends on why you are creating your CMS, as that would have a
strong influence on your architecture. If you can provide more specific
questions, maybe we/i can help :)
To address your technical question, about plugins with requestAction -
again, that depends on your architecture. I've
If Session.save = 'php' it may be caused by other sites on same server
that use short sessions. In this case Session.save = 'cake' will help.
On Apr 20, 2:26 pm, Kyle Decot kdec...@gmail.com wrote:
I've started to get logged out of my website every couple of minutes
and I'm not really sure
Well, the system that I thought required requestAction() was like
this:
I wanted to build a cms that's so complete you would only need to
create a new database and a new css-file to create a whole new
website.
Plugins are used as codeblocks. So if I have a page with some content
(an article or
I need help how i should link these tables together.
I have
Users
Profile
Posts
Users is suposed to have one profile and many Posts. The Users are
also suposed to have many friends(other users).
I want to display the users posts and the users friends posts on the
profile.
How should I link
I need some help with linking my database tables and models.
I have:
User
Profile
Post
A User has many posts, one profile and many friends(other users). I
want to display the users posts and the users friends posts on the
profile.
How should i build the database(like friendship between users)
I'd like some reactions to this kind of addition to Cake in a future
version.
cake/config/paths.php is the file that defines the locations of files
and directories.
Most defines look like this:
define('CSS', WWW_ROOT.'css'.DS);
Some of them anticipate that they might have been set before,
Hello
I'm just installed cakephp (v.1.2.2.8120) over apache in mamp server,
in basic (developer) mode, but when I load the page, it doesn't show
css,js, images, rewrite engine is on.
In the html code it shows as example: href=/favicon.ico
but the right location is:
its my fail i had bad hostname should be: smtp.hti.pl but last error
didn't tell me nothing about that
On 20 Kwi, 08:52, andrzejborkow...@gmail.com
andrzejborkow...@gmail.com wrote:
i try sent email by
$this-Email-to = $email;
$config['Email']['from'] = 'andrzej.borkow...@lowcy.com.pl';
Ok, I'm going to try to keep on with the tutorial.
Once I've created baked Models and Controllers, I've got to create the
views but which actions should I declare?
The tutorial simply doesn't tell that...
http://book.cakephp.org/view/642/Preparing-our-Application
On Apr 19, 8:47 pm, Jon Bennett
Hello.
is there any way to add css and/or layouts custom paths to cake?
--~--~-~--~~~---~--~~
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
Hello.
is there any way to add css links from an helper function?
--~--~-~--~~~---~--~~
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
Hi!
I am working on add/edit module for products on an e-commerce project.
Here requires to save multiple images at same time. While submitting
form the debug output for received ProductImage elements of $this-
data is as below:
app\controllers\products_controller.php (line 716)
Array
(
[1]
You need an additional information - who is friend with whom - so a
new table users_users is born :)
So your relationships will be:
users hasMany posts
users hasAndBelongsToMany users through users_users.
And you have to find:
1) The current users post using users hasMany posts association.
2)
check out View::renderLayout()
On Apr 17, 4:43 pm, maxmil max...@gmail.com wrote:
I would like to be able to define a kind of inheritance model for my
layouts. Thats to say be able to define a layout for a layout.
Probably not very well explained, heres a concrete example.
I have a
Answered in
http://groups.google.com/group/cake-php/browse_thread/thread/c27461d26e365e46#
On Apr 19, 11:27 pm, Victorr victor.ry...@gmail.com wrote:
I need help how i should link these tables together.
I have
Users
Profile
Posts
Users is suposed to have one profile and many Posts. The
I would use the error message form a data validation like ALT of an
image but I can't to understand ho can I do it?
Has somebody a idea to o it?
Many Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP
hi, i am a newer with cakephp,i want to generate a static html page
when from controller to views, how can i do?
thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send
Please help someone!
The project due date is the day after tomorrow.
Please!
--~--~-~--~~~---~--~~
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
Check that the .htaccess files are not missing as they are the ones
doing the rewriting.
On Mac OS X this is a very very common problem since the finder does
not select them when you select all files in a folder. Copy the
containing folder or use some other means of copying these files.
/Martin
To give an example of majna's comment.
If you have your base layout called default and another one called
contained...
in contained.ctp:
echo $this-renderLayout('div id=container'.$content_for_layout.'/
div','default');
This would probably be the smallest layout in history but I hope you
get
Ok, I'm going to try to keep on with the tutorial.
Once I've created baked Models and Controllers, I've got to create the
views but which actions should I declare?
The tutorial simply doesn't tell that...
http://book.cakephp.org/view/642/Preparing-our-Application
Why not work with an
there should be a direct relation between the two tables ( hasone,
hasmany)... only then saveAll wil work..
On Apr 20, 3:50 pm, Nature Lover nature_lover1...@yahoo.co.in wrote:
Please help someone!
The project due date is the day after tomorrow.
Please!
I only have a few general things to share. You have probably at least
some of this in mind already but sometimes repetition is good :)
First. It doesn't sound at all like you HAVE TO use plugins for what
you describe. Plugins in cake can basically be two things. An optional
functionality (a
I have made an application using bake tool. Cakephp is installed on my
pc.
How should I move it to the production server which doesn't have
cakephp installed?
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
hi all,
If we want to save all the related model data then we use the saveAll
() method. But what should be done if I want to make an entry in that
table which is not directly related to the related table.
I have created a table named tbl_acitivites in which I am recording
the actions of users
Try this:
echo $html-image(
'my_image.gif',
array(
'alt' = $form-error(
'Model.field',
null,
array('wrap' = false, 'escape' = false)
)
)
);
On Apr 20, 5:40 pm, marco.rizze...@gmail.com
marco.rizze...@gmail.com wrote:
I would use
It was the missed .htaccess issue, thanks for this very quick response.
2009/4/20 Martin Westin martin.westin...@gmail.com
Check that the .htaccess files are not missing as they are the ones
doing the rewriting.
On Mac OS X this is a very very common problem since the finder does
not select
Thought I'd post my current quick-hack of paths. It is simple but it
does what I need. And git makes the process of hacking the core a lot
easier. Fast forward rocks.
git diffing looks like this: Just three lines added:
diff --git a/cake/config/paths.php b/cake/config/paths.php
index
And if I would that the image is showed only if there is the error?
On Apr 20, 2:55 pm, Dr. Loboto drlob...@gmail.com wrote:
Try this:
echo $html-image(
'my_image.gif',
array(
'alt' = $form-error(
'Model.field',
null,
array('wrap' =
Hi,
when I use saveAll, my data looks like this:
Array
(
[1] = Array
(
[Team] = Array
( [name] = Arsenal
[id] = 7
)
)
[2] = Array
(
[Team] = Array
(
Hi guys,
I am trying to use the rss2html.php on my website and for some reason
it display the feeds with no problem when I display rss2html.php. The
problem is that I am trying to call it from my webpage and it doesn't
work.
This is the webpage I am trying to show the the rss feeds
I have 2 selecttag, one which allows me to select the projects and
then it will update the related subjects in the second selecttag.
I've been using this tutorial,
http://www.devmoz.com/blog/2007/04/04/cakephp-update-a-select-box-using-ajax/
but I'm having problem populating the second
I have 2 selecttag, the first with the id, ProjectId and the second
with the id, SubjectId
When the user make changes in ProjectId, the observeField will be
triggered and a controller function called ajax_calls will be
triggered. However, I failed to make the SubjectId updated with the
result
Hello,
We are basically desktop C/S database application developers and are
planning to
port one of our application (Delphi Firebird) to web. The basic
requirements are as follows
1 It should be Backend Database independent (i.e. should use one of
Firebird, MySQL,
PostgrSQL, Oracle and
The main problem is that, when I set the app folder's path with
cake bake project
it changes automatically few seconds after and it returns to be
...\cake\console (the default value).
How is it possible?!
On Apr 20, 1:58 pm, Jon Bennett jmbenn...@gmail.com wrote:
Ok, I'm going to try to
Sorry
I have found the answer
isFieldError(string $fieldName)
On Apr 20, 3:35 pm, byqsri marco.rizze...@gmail.com wrote:
And if I would that the image is showed only if there is the error?
On Apr 20, 2:55 pm, Dr. Loboto drlob...@gmail.com wrote:
Try this:
echo $html-image(
I need help in using saveAll() method for editing, I have a form that
needs to save data to 2 different models, Subscriber and Individual
subscriber. But everytime i edit data, a new data is being created
instead. The following is my codes:
did you put a hidden field with the id in the view
Hi Able,
The main problem is that, when I set the app folder's path with
cake bake project
it changes automatically few seconds after and it returns to be
I'm not sure, I don't use bake or the console often, and have only had
real success in a production environment, not locally.
try
Hi all,
I'm building a site which is going to use two sidebars, the content of
which is pulled from the database. These will appear on every page of
the site. Since the sidebar data isn't really related to the main
content of the page, I'm not sure what the best way is to pull it in.
I'm sure I
When using $html-css() or $javascript-link() in view files, specify
'false' for the 'in-line' argument to place the html source in
$scripts_for_layout. (See API for more details on usage).
http://book.cakephp.org/view/96/Layouts
--~--~-~--~~~---~--~~
You received
First, create a model with the $useTable = false declaration:
app/models/mypage.php
?php
class MyPage extends AppModel {
var $useTable = false;
}
?
Then, define an empty action in a controller, like
app/controller/mypage_controller.php
?php
class MyPageController extends AppController {
I am trying to map model attributes to database fields with different
names.
Example of regular CakePHP model:
User Model with attributes id and firstname would load the
appropriate values from same-named database fields id and
firstname.
Example of my CakePHP mode:
User Model with aatributes
Hi!
The relations are direct as below:
Product-ProductVariation
Product-ProductImage
Thanks!
On Apr 20, 5:00 pm, gaurav.v.sharma gaurav.v.sha...@gmail.com
wrote:
there should be a direct relation between the two tables ( hasone,
hasmany)... only then saveAll wil work..
Another way of describing the problem is that instead of having the
following query style:
SELECT uid, firstname FROM users;
I want this query style:
SELECT uid AS id, firstname AS first_name FROM users;
So that I can use the attributes id and first_name in the code,
but it will work with the
Yes, this is the way i decided to do it.
On Sun, Apr 19, 2009 at 4:31 PM, burzum bur...@doomzone.de wrote:
If you need any special validation for a method put it in a model
method and just pass $this-data + whatever you need to this method.
The model method can then set or unset() whatever
Is there anyway to get the pagination to work without redirecting to a
different controller ? :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to
I apologise--I've just realised that I left out one crucial detail! I
meant to say that you might be better off adding a column to the
table, hijri_month, with, eg. 1,2,3, etc. It isn't absolutely
necessary but will make your queries simpler as well as allow you to
use an index on the column so
You're going to require the Cake libs on the server, also. Baking an
app does not compile the libs into your classes.
On Mon, Apr 20, 2009 at 8:43 AM, aryan aryande...@gmail.com wrote:
I have made an application using bake tool. Cakephp is installed on my
pc.
How should I move it to the
Indeed, there is. At least, if you're trying to do what I did. Your
question isn't very clear.
I needed to paginate posts on the front page of a site. This page is
served up by a customised PagesController (PublicStaticController--a
bit of a joke that I won't get into). Anyway, I'll just show
Also, make sure that Html and Javascript are included in your helper's
$helpers array.
On Mon, Apr 20, 2009 at 10:07 AM, fain182 fain...@gmail.com wrote:
When using $html-css() or $javascript-link() in view files, specify
'false' for the 'in-line' argument to place the html source in
Use an element (with caching), I guess. Do you have a model
controller for this data?
On Mon, Apr 20, 2009 at 10:44 AM, Art adeho...@gmail.com wrote:
Hi all,
I'm building a site which is going to use two sidebars, the content of
which is pulled from the database. These will appear on every
Maybe the easiest solution would be to create a Behavior that your
Comment, Item, etc. models implement. An afterSave() method would then
update the acitivities table.
On Mon, Apr 20, 2009 at 8:46 AM, gaurav.v.sharma
gaurav.v.sha...@gmail.com wrote:
hi all,
If we want to save all the related
I suppose the burning question is, why do you want both versions of
the app using the same DB? That seems fraught with peril.
On Mon, Apr 20, 2009 at 11:03 AM, jakobjp m...@jakobjp.net wrote:
I am trying to map model attributes to database fields with different
names.
Example of regular
Thanks for your answer but it is still not working.
When I view the generated HTML code, the tag form id= is not
there. Therefore I can't submit the form.
Your tip to $this-render was very useful though ;) (now it makes
sense)
Hugo
On 19 Abr, 05:21, adallas alastair.dal...@gmail.com wrote:
Hi,
Putting this post out in the community again in hopes to getting some
feedback.
Your feedback is greatly appreciated!
Thank you,
Curtis
On Apr 17, 11:55 am, Future22 curtiszj...@gmail.com wrote:
Hello Cake Community,
I uploaded the latest version of CakePHP to my share hosting server
yodi,
this hasn't been working for me. When I remove all search conditions,
I get the containable behavior to work, but once I start putting in
search conditions, it stops working. Here is the code I got working,
all models have actsAs = 'containable' in them. I have taken your
example and
I have tried multiple posts and have searched all over the internet
and I can't figure this one out. I imagine an expert could do this in
less than an hour. I am happy to pay you for your time, please contact
me at the email address above.
Here is the issue, I have three models:
Model1 HasMany
add to config/bootstrap.php
define('CSS_URL', 'my_css_directory/');
for layouts, use theme view,
or add additional VIEW paths in bootstrap.php
On Apr 20, 11:28 am, Ernesto e.fanz...@gmail.com wrote:
Hello.
is there any way to add css and/or layouts custom paths to cake?
Some of the reasons are: 1) Users can use the old version during a
transition period, so they are not forced to switch to the new version
for convenience, and 2) (important) a lot of backend-services (mostly
some php scripts executed as cron jobs) run with old code (and php
objects) and cannot
I've followed any one of the few tutorials in the Bakery on installing
and using Smarty. However, even though my application's not
generating errors (debug = 3) my variables inside the {} are not
executing. it's all showing up as text. Anyone happen to have a
quick solution? I've Googled
So I have my MeioUpload set up:
var $actsAs = array(
'MeioUpload' = array(
'banner' = array(
'dir' = 'img/events/banners',
'create_directory' =
Can you post some code to give an example of what is happening?
On Apr 20, 3:07 pm, timtrice tim.tr...@gmail.com wrote:
I've followed any one of the few tutorials in the Bakery on installing
and using Smarty. However, even though my application's not
generating errors (debug = 3) my
Hi I'm building a db schema which will have a number of Jobs which
belong to a Project. A Job can cover many Rooms in different
Buildings. Each Project can have many Buildings. I have the
following associations. With scaffolding it looks okay, but when i
add a job, how can i filter the room
Im still baffled why people would use smarty within a framework. Smart
is horrible.
--~--~-~--~~~---~--~~
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
Which is the diffrerence between .thtml and .ctp in views?
Thanks,
Fernando
--~--~-~--~~~---~--~~
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
The .thtml extension is from the Cake1.1.x series. The newer 1.2.x
releases use .ctp.
On Mon, Apr 20, 2009 at 5:31 PM, brian futurahardw...@gmail.com wrote:
Which is the diffrerence between .thtml and .ctp in views?
Thanks,
Fernando
blckspder, I don't think it's code as my application is running fine.
I'm simply using:
{$title_for_layout}
inside my default template. I was following the tutorial located
(http://bakery.cakephp.org/articles/view/the-cakephp-blog-tutorial-
with-smarty). I have the latest version of Smarty
But you can use the .thtml convention in 1.2 if you wish. I would not though
for the sake of convention.
On Mon, Apr 20, 2009 at 3:03 PM, brian bally.z...@gmail.com wrote:
The .thtml extension is from the Cake1.1.x series. The newer 1.2.x
releases use .ctp.
On Mon, Apr 20, 2009 at 5:31 PM,
Miles,
I've avoided using Smarty in Cake for almost a year, now. But I have
an application that has become rather tiresome to sort thorugh with
all of the programming code (foreach loops, switches, etc.). While I
would prefer to not have to use another system inside of a system
(because of
Are the permissions for the posters dir good?
On Mon, Apr 20, 2009 at 4:56 PM, Arak Tai'Roth nielsen.dus...@gmail.com wrote:
So I have my MeioUpload set up:
var $actsAs = array(
'MeioUpload' = array(
'banner' = array(
Yup. I do.
On Apr 20, 11:40 am, brian bally.z...@gmail.com wrote:
Use an element (with caching), I guess. Do you have a model
controller for this data?
On Mon, Apr 20, 2009 at 10:44 AM, Art adeho...@gmail.com wrote:
Hi all,
I'm building a site which is going to use two sidebars, the
I see I have files in my 'tmp/smart/compile' directory. I don't know
if that helps narrow it down...hopefully
On Apr 20, 5:06 pm, timtrice tim.tr...@gmail.com wrote:
Miles,
I've avoided using Smarty in Cake for almost a year, now. But I have
an application that has become rather tiresome
Yup, the exact same permissions as the banners directory
On Apr 20, 4:09 pm, brian bally.z...@gmail.com wrote:
Are the permissions for the posters dir good?
On Mon, Apr 20, 2009 at 4:56 PM, Arak Tai'Roth nielsen.dus...@gmail.com
wrote:
So I have my MeioUpload set up:
var
I have just been messing around with my app and changing values in Ajax
links with Firebug to see what happens...sure enough I can be logged in as
user 1 and thru an Ajax form delete a post by User 2. Been reading about the
Security Component but seems from what I have found is that it does not
Media view keeps throwing up a 404 because of the following code:
if (is_dir($path)) {
$path = $path . $id;
} else {
$path = APP . $path . $id;
}
if (!file_exists($path)) {
header('Content-Type: text/html');
$this-cakeError('error404');
}
Here are my params,
You can use a component to fetch sidebar data from the database.
Have a look at NeutrinoCMS, a cake based CMS:
http://dsi.vozibrale.com/downloads/categories/view/neutrinocms
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
81 matches
Mail list logo