Can't comment on the best approach, but I would definitely like to be
able to send multipart email, so this thread is of interest.
Regards,
Langdon
Attila wrote:
So you guys are just sending out either html only email (wiki example)
or text only emails (matt's example).
How about mime
I'm currently considering several MVC PHP frameworks and so far,
CakePHP seems to be the best choice.
However, as I will be using it to create large applications, I was
wondering if it is possible to organisatie Controllers, Models, Views
in subdirectories. Our largest application - which is
Plugins: http://manual.cakephp.org/chapter/13
or you could do multiple apps.
--~--~-~--~~~---~--~~
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
Try SlimStat. It's great product.
--~--~-~--~~~---~--~~
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
Okay, great! Cake is looking better and better!
However, I cannot oversee what the differences are (if any) between
regular models, views and controllers and those in a plugin. Can they
be intertwined at will? Do you still have the same facilities (using
helpers, components etc.)?
Thanks for
If I set debug level to 0, error 404 shows if I input an error URL.
Because there are no matching controllers or actions.
Can we make it redirect to another URL(use default controller or
action) instead of showing error 404?
For example, /pages/badaction can be redirected to /pages/index.
http://cakebaker.wordpress.com/2006/06/15/writing-a-custom-error-handler/
--~--~-~--~~~---~--~~
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
So this means that helpers and components in the base app can also be
used by the plugins? If this is the case, the plugin system is exactly
what I'm looking for. Although I do not understand why it is called
plugin's. I do not see the analogy.
Alright... I just set up a hasOne and a belongsTo for my users and
articles tables, and now I am getting this error:
SQL Error in model Article: 1052: Column 'active' in where clause is
ambiguous
Here are my findAll calls:
$this-set('articles', $this-Article-findAll('active =
RosSoft ha scritto:
try changing domain and expires in setcookie
Expires is set to time() + 3600 ... but nothing change :(
Why should I change domains? Cookie was corectly sended ... but only
the method that sended it can use it !!
--~--~-~--~~~---~--~~
You
Hi.
This thread is being very enlightening. I have a question though: doesn't
an action always render a view (unless $autoRender is set to false)? Here's
an example:
in one_controller.php:
function foo()
{
$this-set('foo', $this-Foo-findAll());
$this-render('foo_view');
}
*NOTE*:
Hi Luke,
set debug to 2 in your /app/config/core.php file, and you will see that
the sql query that is generated, and see that there are 2 tables
included in the SQL that contain the field active.
Cheers,
AD7six
--~--~-~--~~~---~--~~
You received this message
Luke wrote:
OK, I got it working, but whenever I click ANYTHING (edit, add, view)
it says:
Missing controller
You are seeing this error because controller UserController could not
be found.
Hi Luke,
This sounds suspiciously like a variable has been defined incorrectly,
or there is a
Sergei wrote:
Thanks,
I've already managed this myself. Just created special controller with
view which uses existing model.
AD7six, I think elements and components are not very suitable for my
task, right?
S.
Hi Sergi,
It's up to you how to write your own pages, I only pointed out
Chris Lamb wrote:
But what if your plaintext password looks like a valid MD5 string?
Hi Chris,
Indeed then the code would cause a problem in this case. I don't think
that any of the places I've used it would accept an MD5 as a password,
and as such the MD5 and password validations are
Maybe in your browser you are requesting http://[yoursite]/user instead
of http://[yoursite]/users (note the final 's').
Your controller have to be users_controllers.php and in it class
UsersController extends AppController (note, as alvays the plural
'users' )
if ($this-isCalledByRequestAction) {
if (!empty($this-params['bare']))
But be careful, 'bare' parameter is 1 in case of ajax call also
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post
phpMyVisites is great too (http://www.phpmyvisites.net)
--~--~-~--~~~---~--~~
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,
I'm also dreaming of a
$this-isCalledByRequestAction
I made a ticket for this https://trac.cakephp.org/ticket/1013
olivvv
Gonçalo Marrafa wrote:
Hi.
This thread is being very enlightening. I have a question though: doesn't
an action always render a view (unless $autoRender is set to
Hi Dear Members,
FOLLOWING R THE NEW JOBS OF THE DAY :
Sr. TIBCO Developer
Peoplesoft Professionals
self supporting trainee
Sr.Software Developer
ITES(bpo)
IT(.net,asp,php)
MNC BANKS
Associate Software Developer
Java Programmer
Executives - Business Development
HR Executive
Siebel
hi Langdon Stevenson,
Can u show me quick walkthrough (place some code too :D) in order to
get it works
thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
yes.. very powerfull, i've use it some times
--~--~-~--~~~---~--~~
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
Nate:Is there a simple way to get a list of the ACOs a given ARO (user) has access to?On 6/29/06, nate
[EMAIL PROTECTED] wrote:The example with setup_controller is just an example of how to do some
basic initalization.The idea is, you can just write a shortcontroller action to do the initial
I am sending out multi-part emails with both an HTML and text version,
and I am using the Pear library Mail_Mime to achieve this:
http://pear.php.net/mail_mime
Though I plan to abstract this somewhat by moving all the repeated
logic into a mail component.
Attila wrote:
So you guys are just
Hi rombeh
I have the following code in the controllers that I want to protect:
(note: extra $helpers and $components have been removed to simplify)
class LeadersController extends AppController
{
var $name = 'Leaders'; //for php4
var $helpers = array('othAuth');
var $components =
well, I need it working today, so here is what I'm just doing:
1) extension of the email component to be suited for multipart
alternative
2) master layout for a multipart alternative email, with one
renderElement for each of the templates, the html and the txt
version.
3) the html and the txt
Try using array('Article.active'=1) for the condition ('Article.active'=1 would work as well but there are some advantages to using the arrays for conditions)On 6/30/06,
AD7six [EMAIL PROTECTED] wrote:
Hi Luke,set debug to 2 in your /app/config/core.php file, and you will see thatthe sql query
Wow. I see that there is more and more othAuth users. I've two issues
I'm not sure how to tackle.
Just wanna to know if some peoples are sharing the same concerns (and
if crazylegs thought about that for the new version)
1.Sometimes I hit the login page while its seems that I am already
Who wants to develop an AJAX form builder in Cake? :)
--~--~-~--~~~---~--~~
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,
maybe this will interest you:
http://partridge.wordpress.com/
perhaps you would gain at working together.
sicapitan wrote:
Who wants to develop an AJAX form builder in Cake? :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Iam really interested in making a form builder in AJAX for cake contact
me, my mail is [EMAIL PROTECTED] I'm trying to make an accounting
software using cake.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
set domain to /
--~--~-~--~~~---~--~~
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 PROTECTED]
For
Hi Langdon,Cna you help me get past a raher mundane aspect of using othAuth?I have added othAuth to my cake install and all appears to be fine.I try to get to a restricted area and it redirects to the login page. I enter the login credentials and then I get this error once I click the submit
can you paste your code ? (in cakebin for instance)
Ryan Petrain wrote:
Hi Langdon,
Cna you help me get past a raher mundane aspect of using othAuth?
I have added othAuth to my cake install and all appears to be fine.
I try to get to a restricted area and it redirects to the login page.
RosSoft ha scritto:
set domain to /
I resolved with this:
setcookie('mycookie','yummm',2147483647,'/',false);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
Hi Olivier,This is the user controller that handles the login. What other code do you need?class UsersController extends AppController{ var $name = Users; var $components = array('othAuth');
//var $othAuthRestrictions = array('index','view'); var $othAuthRestrictions = null; var $uses =
I still can't get it work,
here's my code (I'm trying to protect entire controllers action):
?
/ ***
/apps/app_controller.php
*/
class AppController extends Controller {
var $helpers = array('Html','Javascript','Ajax','othAuth');
var $components = array('othAuth','RequestHandler');
I'm new to Cake and trying to figure out basic functionality. My first
project I'm using to assist my learning process is to register and
manipulate user accounts. My first snag has been in the registration
process.
When a user registers he is presented with the following fields:
username,
Ryan, I think you need a before filter, I have this :
function beforeFilter()
{
$auth_conf = array(
'auto_redirect' = true,
'login_page' = 'categories/login',
'logout_page' = 'categories/view',
'access_page' = 'categories/login',
'hashkey' = 'MySEcEeTHaSHKeYz');
Olivier,I am not getting that error, but when I visit a restricted page it redirects me to the login (good), I login with proper credentials, and then it redirects me to the login again.Any ideas on what I am still doing wrong?
thanx for all your help so far.On 6/30/06, Olivier Percebois-Garve
On Jun 30, 2006, at 6:05 AM, Attila wrote:
well, I need it working today, so here is what I'm just doing:
1) extension of the email component to be suited for multipart
alternative
Just add to the one on the wiki, cake lovers will worship you forever.
2) master layout for a multipart
I would really like to see my original question answered. Doesn't the
view get rendered with requestAction(), even if the 'return' parameter
isn't passed? Master bakers, can you enlighten us?
Thanks in advance.
--~--~-~--~~~---~--~~
You received this message
Yes if you put $this-render() in the method. As was discussed the
really should not be needed and a simple return is preferred.
function foo(){
return $this-Example-findAll();
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed
This question has been answered numerous times. Please use the group
search or http://cakephp.org/search (which searches the whole cakephp
world including blogs, manual, and groups);
If you search for invalidate you should find several answers to your
question.
I've been researching this for two weeks trying to find something in
this group (since no one answers questions in the IRC channel) that
applies on a level that I can implement and, so far, have not found
anything that satisfies. In general, it seems like there is no
consensus on a best practice
Olivier,I have a question about you app_controller.php.If I understand it right, seeing where you have the beforeFilter set in the main controller, where you set the login to categories/login and the redirect to categories/login does that mean all the other controllers that do not override this
On Fri, 30 Jun 2006 10:19:42 -0700
gwoo [EMAIL PROTECTED] wrote:
Yes if you put $this-render() in the method. As was discussed the
really should not be needed and a simple return is preferred.
function foo(){
return $this-Example-findAll();
}
OK, but doesn't work for me. I have
did you search for invalidate?
http://groups.google.com/group/cake-php/browse_thread/thread/
af164e88e1d4897a/dae09c12f2916331?q=invalidaternum=2#dae09c12f2916331
http://groups.google.com/group/cake-php/browse_thread/thread/
daxroc and i are both experiencing a strange problem with othAuth. i
believe we have everything implemented as per instructions and
everything works except one thing: when not logged in, you can call a
restricted action and that action will be performed before you are
redirected to the login page
Thanks,
now it starts to get together, also part 3 and 4 seem to work - in
principle - now.
The email templates in /views/elements/email/ is good, I like that.
I'm finishing the application now (deadline!) and then I'll post the
working code.
cakePHP rocks!
I am looking to control where the person is being redirected to after they login based on what they were trying to access.I solved this problem by setting a variable $AuthConf = array(...) in app_controller.php and then having the other controllers override that to set the array to values needed
Well, I experience unwanted redirects to the login page also. But I
can't tell what are the conditions for this bug to happen.
Sorry, I can't imagine why in addition to that you've twice the login
param.
Ryan Petrain wrote:
I am looking to control where the person is being
redirected to after
I responded to gwoo directly with this:
I saw the first, hadn't seen the second, but here's my problem...
Invalidating fields that don't exist in the model doesn't seem to do
anything (and this doesn't seem to be addressed in either posting). I
was pretty sure this was a syntax problem on
change
$this-autoRender=false;
to
$this-layout=ajax;
On 6/30/06, salimk786 [EMAIL PROTECTED] wrote:
function listing_deleteKeyword($id)
{
//Search for the keyword
$result = $this-Keyword-findAll($criteria=account_id = ' .
$this-Xauth-getId() . ' and Keyword.id = ' . $id . ');
if
Hi,
Thanks so much for this. Here's an update :
I went to the url you suggested : https://trac.cakephp.org/ticket/812
I followed the instructions to change the index.php and config.php.
It now works fine !!
That is to say, where it produced a page with urls such as
You can add as many tagErrorMsg to your view even if don't exist in your model.
ex:
?=$html-tagErrorMsg('Profile/passwordsDontMatch', 'Sorry, the
passwords don\'t match');?
and in your controller:
if (!$this-data['pass1']==$this-data['pass2']){
$this-Model-invalidate('passwordsDontMatch');
I forgot to mention, check Snook's post about validation:
http://www.snook.ca/archives/php/cakephp_data_va_1/
On 6/30/06, Armando Sosa [EMAIL PROTECTED] wrote:
You can add as many tagErrorMsg to your view even if don't exist in your
model.
ex:
Is there a way for me to watch the checkboxes or remember which ones
are being checked?
I like the effect of clicking on the delete link.
I would like to apply the same effect to all the checkboxes that have a
check, when they cilck on the button that reads 'Delete Selected
Keywords'.
Thanks.
I have a little bit of a plurals problem.The setup I am trying to implement here is the following:Model: filter_criterion.phpTable: filter_criteriaController: filter_criteria_controller.php
What happens when accessing the hostname/filter_criteria url is that it says I need a model named
More info on the problem...So I have a Filter model and a
FilterCriterion model. A Filter hasMany FilterCriterion and a
FilterCriterion belongs to a FilterIf I load the Filters
controller it comes up fine if I have 'filter_criterion' =
'filter_criteria' in the irregularPlurals array in
Hi Olivier and Ryan
I have experienced all of the problems that you are now seeing.
1. Constant redirecting to login page indicates that the Permissions and
var $othAuthRestrictions are not set up right. I was not able to get *
to work to protect all actions. I didn't take the time to
Thanks, this is useful. I think I must be making an assumption
somewhere that I shouldn't be making, so here's my bit of code in my
controller:
function register() {
// Check to see if form data has been submitted
if (!empty($this-data['User'])) {
62 matches
Mail list logo