On 9 mayo, 03:39, stefano [EMAIL PROTECTED] wrote:
Hello
I try to do a search over a pagination component i found
thishttp://www.noswad.me.uk/Pagination/PRG
but i can't download the source any one have this source or some like
that ??
thz
stefano s.
I haven't updated the links yet:
On 9 mayo, 03:43, Sliv [EMAIL PROTECTED] wrote:
I believe from what I've read, that a big reason for not using a
series of requestActions is performance. Run a series ofrequestActioncalls
and check the speed.
Cake Processing
Hello,
when I set $persistModel to true in my AppController everything works
fine until I try to use Model behaviours (in my case:
ExtendAssociationBehaviour;
http://bakery.cakephp.org/articles/view/add-delete-habtm-behavior)
I get the following error message:
Fatal error: Model::findAll()
On 8 mayo, 22:44, Stacey [EMAIL PROTECTED] wrote:
Andy,
The Ajax 'Seeing Double' demo is pretty close to what I'm trying to
accomplish. My only question, is it possible to do this with two
different sets of data on the same page?
Of course, the only reason they are the same is to
I actually like to mix the two. What I find best is to create an
element, and put the rA() inside it. Then I can use element caching
to speeding things up, and reduce the load.
Of course, you may find that when you update data on your site, these
elements don't update right away - what you
hi i am new to cakephp , i am facing one problem , i followed the
tutorial from
http://www.learncake.com/installing-cakephp-and-configuring-mysql/,
but am getting an error like this
Your database configuration file is present.
Fatal error: Call to undefined function mysql_connect() in
On 30 abr, 18:47, phpsmitty [EMAIL PROTECTED] wrote:
This is similar functionality that the masterbake.php file can bake up
but the code it produces is very messy. Seams like a couple include
files should be able to dynamically generate this functionality
automatically.
Hi,
You can
how you guys to deal with static pages ,
can I routes url to a html page,and how?
--~--~-~--~~~---~--~~
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
I have the latest stable release of cake, with no edits to the CSS.
But when I use tags such as h2, p ect. in the view files, the text
is invisable in IE until you highlight it, but it remains visible once
you un-highlight it again.
Sites appear fine in FF and Opera. Anyone have any ideas on
Hey list,
I followed the tutorial of IBM: Cook Up Websites Fast (5 part
series) and got the user registration system up and running
successfully. Today I did an database table back up use mysqldump --
add-drop-table xxx command and did some other editing which I forgot.
The problem is the when I
Hey Greg,
Thanks very much for your reply! it helps a lot although the location
should be in /cake/lib/views/layouts/
Blessings,
Rocky
On May 8, 4:09 am, Greg Cerveny [EMAIL PROTECTED] wrote:
Heyrocky,
I had the same question last week. Check out:
/app/views/layouts/default.thtml and this
Problem might be the cake submit helper hardcodes a 'type' =
'submit',. This is not overridden by the 'image' type you specify in
the attributes array.
Might be easiest to code the submit button directly in html in this
case.
--~--~-~--~~~---~--~~
You received
Hmm... ok, I understand setting up the function in the Product model
to run the query but I'm confused about the CategoryController.
If I try to run:
$catProds = $this-Product-getCategoryProducts($categoryId);
I get Undefined property: CategoryController::$Product
or if I try
$catProds =
it seems you have not the mysql extension for PHP
if you have PHP5, try mysqli instead of mysql in your database conf
file
On 9 mai, 09:43, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
hi i am new to cakephp , i am facing one problem , i followed the
tutorial
Hmm... ok, I understand setting up the function in the Product model
to run the query but I'm confused about the CategoryController.
If I try to run:
$catProds = $this-Category-Product-getCategoryProducts($categoryId);
you have to traverse the associations tree back. If you're working
within
It's a CSS cause
but I don't know exactly where in the file, I always start projects
with a blank CSS
On 9 mai, 11:01, Harro [EMAIL PROTECTED] wrote:
I have the latest stable release of cake, with no edits to the CSS.
But when I use tags such as h2, p ect. in the view files, the text
is
search for Pages controller in the group
for short: it's a special controller, you just add .thtml|.ctp files
in /app/viws/pages/ folder and they are visible at mysite.com/pages/
file (without extension)
On 9 mai, 10:42, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
how you guys to deal with
Don't edit the files in /cake folders, it's the CORE of Cake, and
should never been modified!
All your files must be in /app and/or /vendors
Create default.ctp in /app/views/layouts/ if not exists
And read the manual for layout/view/conventions rules
On 9 mai, 11:48, AD7six [EMAIL PROTECTED]
Silv,
Thanks, so my setup should work. Hmmnz... Which version of phpGACL do you
use? Did you have to edit some things manually or just installed the bunch
like described here: http://dev.sypad.com/installing-phpgacl-plugin-cakephp
TIA
Paul
I'm using PHP5, MySQL 5 and CakePHP 1.1.14.4797
Hey,
http://localhost/cakephpxxx/index.php?url=users would give me the
right content but I click on the link of register whose right url was
http://localhost/cakephpxxx/users/register and it gives me the 404
page again unless I input
http://localhost/cakephpxxx/index.php?url=users/register.
It
Hi I have discovered a problem with my app and would like to know if
there is a solution...
When I browse my app with firefox I get this error regardless of Mac
or Pc version (1.5.0.10)
The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for
this
Thank you Hellbot and thank you Tulio :) I solved my doubt.
--~--~-~--~~~---~--~~
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
hi I want to know about the online books available for cake PHP
--~--~-~--~~~---~--~~
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
http://www.avatarfinancial.com/pages/cake/
Quote:
I needed to create several pages that didn't use any models and
contained static data inside the default layout. My first thought was
to create a controller for these pages and define an action for each
static page I needed. However, this
The only book I know at the moment is the manual: http://manual.cakephp.org
HTH
--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this
On 9 mayo, 12:00, RLR [EMAIL PROTECTED] wrote:
Hi I have discovered a problem with my app and would like to know if
there is a solution...
When I browse my app with firefox I get this error regardless of Mac
or Pc version (1.5.0.10)
The page isn't redirecting properly
Firefox has detected
On 7 mayo, 11:09, wluigi [EMAIL PROTECTED] wrote:
I want to build a serch helper that can be used in index action like
paginator.
This helper should be able to use form data to generate a nice url
like with paginator.
PS : perhaps the solution isn't a helper.
I can't see how to handle
On 7 mayo, 22:06, MauroEC04 [EMAIL PROTECTED] wrote:
Hello people!
Well. I'm programming a extreme-large portal and using Cake.
I need to include several (about 6 to 8) views in a layout (including
the 1st page).
I can't just use the requestAction() method in the view classes, it
would
On 4 mayo, 17:21, christos [EMAIL PROTECTED] wrote:
Trying to figure this out for the past couple of days, and can't get
it right.
Need a alternative installation so that CAKEPHP can run both httpdocs
and httpsdocs directories under Plesk.
Plesk 7.5.4 creates for every domain the following
On 1 mayo, 20:17, bit [EMAIL PROTECTED] wrote:
I've reviewed the previous thread that covered HABTM filtering and got
it to
work:http://groups.google.com/group/cake-php/browse_thread/thread/f23b1825...
But if I understand this correctly, using a binded hasOne association
would make the
Thanks it answers all my question.
I will look to the code in few days.
Thanks again
On 9 mai, 13:35, AD7six [EMAIL PROTECTED] wrote:
On 7 mayo, 11:09, wluigi [EMAIL PROTECTED] wrote:
I want to build a serch helper that can be used in index action like
paginator.
This helper should
On 3 mayo, 20:11, rockit [EMAIL PROTECTED] wrote:
Let me explain what i have here. I have 2 models, Inventory Photo.
I have defined an association that Inventory hasMany Photo. ie. a Car
can have many photos.
I have the inventoriesController set up and working properly. it
contains
Ok, I was able to get around the error messages with this:
// CategoryController
..
function view($id){
..
loadModel('Product');
$p = new Product();
$this-Product = $p-getProductsByCategory($id, $start, $limit,
$sort);
pr($this);
$this-set('category', $this-Category-read());
}
hello bakers (especially developers of CakePHP)
I proposing an idea for cakephp. Is it possible to develop a Cache
Viewer to see what is cached. The viewer can be flexible to show
session variables as well as cookie variables. I am not aware of any
such functionality in cake PHP or in some other
Thanks djiize, I found what was causing the issue.
Its the float:left command on line 195 of cake.generic.css
Found in app/webroot/css
Incase anyone else has the same problem. ;)
Thanks, Harro.
On May 9, 11:52 am, djiize [EMAIL PROTECTED] wrote:
It's a CSS cause
but I don't know exactly
Hi,
How to send a report information directly to a printer ( dot matrix
printer ) ? The report page has been developed using PHP,mySql and
Javascript. What I want is that, in the report page, there will be a
link print. On clicking the link, the printing of the report will
start directly. Also
On 5/9/07, RB [EMAIL PROTECTED] wrote:
Hi,
How to send a report information directly to a printer ( dot matrix
printer ) ? The report page has been developed using PHP,mySql and
Javascript. What I want is that, in the report page, there will be a
link print. On clicking the link, the
Well, I used PhpGACL 3.3.7 installed into APP_DIR . /vendors/
After extraction, I did have to make a symbolic link to the
phpgacl-3.3.7 folder called 'phpgacl' because the plugin was looking
for that folder.
For the plugin:
app_dir . /plugins/phpgacl/
app_dir . /components/php_gacl.php
http://www.daniweb.com/techtalkforums/thread15881.html
Smithers, release the hounds.
On May 9, 9:00 am, Chris Hartjes [EMAIL PROTECTED] wrote:
On 5/9/07, RB [EMAIL PROTECTED] wrote:
Hi,
How to send a report information directly to a printer ( dot matrix
printer ) ? The report page
On 5/9/07, Sliv [EMAIL PROTECTED] wrote:
Well, I used PhpGACL 3.3.7 installed into APP_DIR . /vendors/
After extraction, I did have to make a symbolic link to the
phpgacl-3.3.7 folder called 'phpgacl' because the plugin was looking
for that folder.
For the plugin:
app_dir .
cheers, I'll take a look at it right now
On 8 Mag, 01:52, Chris Lamb [EMAIL PROTECTED] wrote:
sixlaneve wrote:
has anyone tried to import RSS feeds with cakephp?
Yes. I recommend using SimplePie[0]. There is a snippet available[1] but
that's rather controller-centric. May I suggest
On May 9, 3:18 pm, Gonzalo Servat [EMAIL PROTECTED] wrote:
On 5/9/07, Sliv [EMAIL PROTECTED] wrote:
Well, I used PhpGACL 3.3.7 installed into APP_DIR . /vendors/
After extraction, I did have to make a symbolic link to the
phpgacl-3.3.7 folder called 'phpgacl' because the plugin was
What datasource fix?
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
-Mensaje
That could be interesting with the new Cache class, and their engines, in
the 1.2 release. Let's hope aakour is monitoring this thread.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So
AD7six: can you have your answer posted above the original mail quote? :)
Regarding Cheesecake being an application, AD7six has a point. Don't want to
piss Tarique off.
Regarding plugins (even though Cheesecake is not one AFAIK) Gonzalo has a
point. Plugin controllers should be named as unique
Mariano:
When I installed your plugin, I was running 1.1.14.4797 and got the
error described in ticket 2370:
http://groups.google.com/group/tickets-cakephp/browse_thread/thread/40546c1950d1d70f/5f9d2360f5e31f95?lnk=gstq=%232370rnum=1#5f9d2360f5e31f95
So I implemented the fix and no problems.
2007/5/9, sixlaneve [EMAIL PROTECTED]:
has anyone tried to import RSS feeds with cakephp?
yes
Yes. I recommend using SimplePie[0]. There is a snippet available[1] but
that's rather controller-centric. May I suggest creating a Model to
encapsulate the RSS functionality you need.
oh yes
Oh yeah, that's right. Thanks.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
blog: http://www.MarianoIglesias.com.ar
How to render the same file from controller and view.
For example I need to render edit.thtml.
Inside controller I do
$this-render('edit', 'ajax');
and it works.
From view I do $this-render('edit', 'ajax'); and does not work, the
ajax links inside the edit.thtml file are not working.
My layout
is it even remotely posible that
when i remove
var $helpers = array('Html','Form');
my session read and write works
but when i put that in my controller,
everytime i write the session variable, it writes something
else(randomly)
into the session variable (i checked the raw session file) ?
But
one advantage to using elements is that in 1.2 you can cache them for
periods of time thus helping your performance as well
On 5/9/07, Tane Piper [EMAIL PROTECTED] wrote:
I actually like to mix the two. What I find best is to create an
element, and put the rA() inside it. Then I can use
use the RequestHandler component with ajax and the layout will be set
automatically
--~--~-~--~~~---~--~~
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
i guess you have to use belongsTo for B model.
On May 8, 4:46 pm, peper [EMAIL PROTECTED] wrote:
Hi,
Let's say I've got two models A and B , and the relation is
A hasMany B
Now I want to findAll A's with corresponding B's .
this-A-findAll() works OK.
I can specify fields from A
1. Don't store your results in $this-Product. That is confusing.
2. To expose data to the view use $this-set('variable_name',
$data_for_variable);
3. I have never used loadModel. Instead, at the top of the controller
I would add the unassociated model to the $uses array.
For example in
This is the only way I have found to do this, but perhaps some one
knows a better method?
this-A-hasMany['B']['fields'] = 'id';
$this-A-findAll();
On May 8, 3:46 am, peper [EMAIL PROTECTED] wrote:
Hi,
Let's say I've got two models A and B , and the relation is
A hasMany B
Now I want to
gwoo wrote:
use the RequestHandler component with ajax and the layout will be set
automatically
Not sure how to use it .
I added inside controller
var $components = array('RequestHandler');
so from view
I use
$this-render('edit');
which give still me double layout
from controller
the
Thanks for the feedback!!
--~--~-~--~~~---~--~~
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
I would probably use bindModel with conditions:
http://groups.google.ca/group/cake-php/browse_thread/thread/dcbb867063e4696c/4fbbbd0bf6223330?lnk=gstq=bindmodelrnum=9#4fbbbd0bf6223330
On May 9, 1:08 pm, robechar [EMAIL PROTECTED] wrote:
This is the only way I have found to do this, but
I have a vendor that is doing email marketing for me. They allow custom
fields to be specified in their content templates. However, they don't
support full urls as a custom field, only parts of the query string.
I am sending them a URL like:
http://servername.com/resorts/view/12/28/4
and
http://manual.cakephp.org/chapter/request_handler
On May 9, 1:14 pm, Michael Augustyniak [EMAIL PROTECTED]
wrote:
gwoo wrote:
use the RequestHandler component with ajax and the layout will be set
automatically
Not sure how to use it .
I added inside controller
var $components =
one way:
$newurl = '?var='.$this-params['controller'].'var2='.$this-
params['action'].'var3='.$this-params[0].'var4='.$this-
params[1].'var5='.$this-params[2];
On May 9, 1:32 pm, Erich C. Beyrent [EMAIL PROTECTED]
wrote:
I have a vendor that is doing email marketing for me. They allow custom
oops, wrapped
$newurl = '?var='.$this-params['controller'];
$newurl .= 'var2='.$this-params['action'];
$newurl .= 'var3='.$this-params[0];
$newurl .= 'var4='.$this-params[1];
$newurl .= 'var5='.$this-params[2];
--~--~-~--~~~---~--~~
You received this message
This is driving me crazy, I've tried every possible setup in the model
and tables and nothing seems to work. Please Please help.
I have 2 tables,
bopps
-
id
name
desc
instit_id
instits
---
id
name
I have 2 models
instit.php
-
var $name = 'Instit';
var
On May 9, 2007, at 11:53 AM, uolax wrote:
This is driving me crazy, I've tried every possible setup in the model
and tables and nothing seems to work. Please Please help.
I have 2 tables,
bopps
-
id
name
desc
instit_id
instits
---
id
name
Given this setup, Bopp
Not really a CakePHP specific question. But today is your lucky day. A)
I'm looking for any kind of excuse to not study for my physics final
tomorrow. B) I like playing with array, regex and urls : ).
So here you go:
Thanks John.
I guess because I'm mainly working with the Bopp, i wanted other data
to belong to it. I guess it's just the way I'm thinking about models
and relations.
Thanks again for making my day easier.
On May 9, 11:01 am, John David Anderson (_psychic_)
[EMAIL PROTECTED] wrote:
On May 9,
Now both models are going in loops referencing themselves:
bopp.php
var $belongsTo = array('Instit' =
array('className' = 'Instit')
);
}
instit.php
var $hasOne = array('Bopp' =
array('className' = 'Bopp',
I don't see anything wrong, unless you've set your recursive values
high for your find calls. This setup is normal.
Bopp belongsTo Instit and
Instit hasOne Bopp
That allows you get get data from the other model, no matter which
you're using. Are you getting an error or some long queries or
thx
On 9 mayo, 02:44, AD7six [EMAIL PROTECTED] wrote:
On 9 mayo, 03:39, stefano [EMAIL PROTECTED] wrote:
Hello
I try to do a search over apaginationcomponent i found
thishttp://www.noswad.me.uk/Pagination/PRG
but i can't download the source any one have this source or some like
Sliv wrote:
http://manual.cakephp.org/chapter/request_handler
yeah thanks, but there is no sample in my case w
my code
controller Email
var $components = array('RequestHandler');
function index()
{
$this-RequestHandler-setAjax($this);
}
function edit()
{
I thought it would be possible to access form submited data using
$this-data['Model']
However I get the following error:
Notice: Undefined index: User in E:\Server\htdocs\app\models\user.php
on line 15
Anyone have any ideas? Thanks, Harro
--~--~-~--~~~---~--~~
On 5/9/07, Harro [EMAIL PROTECTED] wrote:
I thought it would be possible to access form submited data using
$this-data['Model']
However I get the following error:
Notice: Undefined index: User in E:\Server\htdocs\app\models\user.php
on line 15
Anyone have any ideas? Thanks, Harro
Thanks for your reply, but I dont follow.
I want to use the data submitted in the users_controller from, in the
User model for custom validation.
I was following this -
http://snook.ca/archives/cakephp/cakephp_data_va_1/#c48338
Thanks, Harro.
On May 9, 8:21 pm, Gonzalo Servat [EMAIL
From the controller do:
$this-returned_information = $this-Modelname-function($this-data);
Just take the data as an argument and parse the array.
This is the way I do it but, if there is an easier way, I am all eyes.
On May 9, 12:28 pm, Harro [EMAIL PROTECTED] wrote:
Thanks for your reply,
I'd like to have my controllers function normally at /controller/
action, but I'd also like users to be able to access parts of my site
using /groupName/courseName. How would I go about doing this? Any good
suggestions on where to look on how to customize the routes this way?
I just moved my web host to a brand new setup at Dreamhost and now my
Cake app does not work! It seems to work for static pages, but not for
any pages that access the database. In the page title it says '404 not
found' and in the body of the error message it says The requested
address
start with this
http://tinyurl.com/2tjk5h
yours,
Grumpy old fart
On 5/9/07, ascend [EMAIL PROTECTED] wrote:
I just moved my web host to a brand new setup at Dreamhost and now my
Cake app does not work! It seems to work for static pages, but not for
any pages that access the database. In
Hi,
I just installed a small cake app I built on a new server. Everything
worked fine on the development server, but on the production box, any
calls to $this-Session in my app_controller.php product a
Call to a member function on a non-object
I made sure the entire cake core installed, it
make sure your tmp folders all exist and are writable
tmp/
cache/
models/
persistent/
views/
log/
sessions/
tests/
as has been repeated umpteen times in this list many ftp and or
extraction programs to not deal with empty folders in an expected way
On 5/9/07, [EMAIL
Sorry, I meant to tell you that I already checked that part as well,
all writable.
On May 9, 4:06 pm, Samuel DeVore [EMAIL PROTECTED] wrote:
make sure your tmp folders all exist and are writable
tmp/
cache/
models/
persistent/
views/
log/
sessions/
tests/
as
Also, would that keep the session object from being instantiated?
I'm trying to find where this even happens, do you know?
On May 9, 4:06 pm, Samuel DeVore [EMAIL PROTECTED] wrote:
make sure your tmp folders all exist and are writable
tmp/
cache/
models/
persistent/
Hello,
I've created my default home page (/views/pages/home.thmtl) to include
a login form for my application. This works fine, but if the login
fails, I am unsure how to handle it. I would like to send the user
back to the front page and display an appropriate error message.
Here is my
You can render the home view with
$this-render('../pages/home');
If you would like to set an error message and redirect you can use
$this-Session-setFlash('You ain't no user!');
To display the flash message, you need this line in your layout (or
view)
if($session-check('Message.flash'))
I've been working on a form to allow users to change their passwords.
For the view, since I'm asking for data that is not part of the model
(newpassword, oldpassword, confirmpassword), I created an arbitrary
name (change) for the form data.
Question #1
Should I be naming my form variables
Nice. I'm looking good :)
Thanks a lot!
2007/5/9, soytuny [EMAIL PROTECTED]:
You can render the home view with
$this-render('../pages/home');
If you would like to set an error message and redirect you can use
$this-Session-setFlash('You ain't no user!');
To display the flash
On 5/9/07, John David Anderson [EMAIL PROTECTED] wrote:
Dear friends,
I only provide this link because at the time of this writing, ZF is ahead
in the poll. Please, please do as your conscience requires.
http://www.php-mag.net/magphpde/magphpde_news/psecom,id,27201,nodeid,5.html
*was*
I am sorry I was not clear - I don't need to construct the URL from Cake
- I need Cake to HANDLE this URL.
I specify the URL, the vendor generates an email containing the link,
Joe Smith receives the email and clicks on the link.
I was thinking about parsing out the URL in index.php and
Our application has finally reached a point where we are designing the
final UI. Up until now we've kept to the cake standard, where all
actions have their own HTML view, with minimal javascript (only for
required functionality). This of course lends itself to a lot of page
reloading and
Can't you just get them to create the url like:
http://servername.com/?url=/resorts/view/12/28/4
then it should just work - as your .htaccess rules just rewrite the
standard cake urls into this fashion anyway.
On May 10, 10:54 am, Erich C. Beyrent [EMAIL PROTECTED]
wrote:
I am sorry I was
Mariano,
Am I missing something simple? Can you let me know an example were you
were able to use with redirect? Should I do something different in my
application.
I am keen to use your new framework for our unit tests but right now I
am blocked on this.
Thanks
Krishnan
On May 1, 8:26 am, ks
90 matches
Mail list logo