This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » General plug-ins » [SOLVED]Problems with sfDoctrineApplyPlugin
[SOLVED]Problems with sfDoctrineApplyPlugin [message #100990] Tue, 15 June 2010 17:24 Go to next message
ricardojguzman  is currently offline ricardojguzman
Messages: 26
Registered: March 2010
Junior Member
Hello

We are using SF version 1.4.
After installing the plugin and configuring it , we tried to create a test account with it.

On the layout file we have the following:

 <?php echo link_to("Crear cuenta", "@apply") ?>


apply:
 url:  /apply
 param: { module: sfApply, action: apply }


When testing the site and pressing the Create button it does nothing.

The code in the instructions for installation is the following:

echo link_to("Create Account", "sfApply/apply");


But we had to change it because the web page returned an error
Quote:

Action sfApply/appy does not exist
.

I searched the symfony forums for this error and someone had the same issue. His problem was that in the routing.yml file the sfApply routing rules have to be placed before the default ones.

We did that and still nothing.

Any idea?

--
Edit:

Solved

I found the solution at this blog

http://www.kazu.tv/blog/archives/000927.html

You'll need to translate it because it is in japanese.

This is the solution In security.yml

1.
apply:
2.
is_secure: false


Because I needed to be logged on to be able to use Apply.

After clearing the cache. I found another issue, ill create a new post for that one.

NeoX , thanks for your help!.

[Updated on: Sat, 19 June 2010 00:43]

Re: Problems with sfDoctrineApplyPlugin [message #101077 is a reply to message #100990 ] Thu, 17 June 2010 00:46 Go to previous messageGo to next message
NeoX  is currently offline NeoX
Messages: 58
Registered: March 2010
Location: Spain
Member

Hi ricardo,

have you done a symfony cc??

I'm using sfForkedDoctrineApplyPlugin and the following works for me:
<?php echo url_for('@apply') ?>


When you use:
 <?php echo link_to("Crear cuenta", "@apply") ?>


What error do you get??
Re: Problems with sfDoctrineApplyPlugin [message #101097 is a reply to message #101077 ] Thu, 17 June 2010 07:37 Go to previous messageGo to next message
ricardojguzman  is currently offline ricardojguzman
Messages: 26
Registered: March 2010
Junior Member
Hello NeoX

Yeah we did CC after every try and still.

When I use

 <?php echo link_to("Crear cuenta", "@apply") ?>


Nothing happens, neither an error or a create a new account page.

Thanks for your help!.


Re: Problems with sfDoctrineApplyPlugin [message #101116 is a reply to message #100990 ] Thu, 17 June 2010 11:14 Go to previous messageGo to next message
NeoX  is currently offline NeoX
Messages: 58
Registered: March 2010
Location: Spain
Member

Why don't you try the folling? This task displays current routes for an application.

php symfony app:routes frontend


I get the following:
NAME           METHOD        PATTERN
.....          .......       .......
apply           ANY           /apply
.....          ......        ........


Do you get something similar?
Re: Problems with sfDoctrineApplyPlugin [message #101137 is a reply to message #101116 ] Thu, 17 June 2010 17:26 Go to previous messageGo to next message
ricardojguzman  is currently offline ricardojguzman
Messages: 26
Registered: March 2010
Junior Member
Hello NeoX

I got the following

>> app       Current routes for application "frontend"
Name                       Method          Pattern
sf_guard_signin   ANY    /login
sf_guard_signout  ANY    /logout
sf_guard_password ANY    /request_password
apply             ANY    /apply
reset             ANY    /reset
resetRequest      ANY    /reset-request
validate          ANY    /confirm/:validate
settings          ANY    /settings
default_index     ANY    /:module
homepage          ANY    /
default           ANY    /:module/:action/*
Re: Problems with sfDoctrineApplyPlugin [message #101138 is a reply to message #100990 ] Thu, 17 June 2010 17:28 Go to previous messageGo to next message
NeoX  is currently offline NeoX
Messages: 58
Registered: March 2010
Location: Spain
Member

I don't know what happend?

Have you tried this code??
<a href="<?php echo url_for('@apply') ?>" <strong>Crear cuenta</strong></a>
Re: Problems with sfDoctrineApplyPlugin [message #101141 is a reply to message #101138 ] Thu, 17 June 2010 17:40 Go to previous messageGo to next message
ricardojguzman  is currently offline ricardojguzman
Messages: 26
Registered: March 2010
Junior Member
Nothing happens

After pressing the button the page remains the same.
Re: Problems with sfDoctrineApplyPlugin [message #101142 is a reply to message #101141 ] Thu, 17 June 2010 17:41 Go to previous messageGo to next message
NeoX  is currently offline NeoX
Messages: 58
Registered: March 2010
Location: Spain
Member

ricardojguzman wrote on Thu, 17 June 2010 17:40

Nothing happens

After pressing the button the page remains the same.


The same is: a blank page??
Re: Problems with sfDoctrineApplyPlugin [message #101143 is a reply to message #101142 ] Thu, 17 June 2010 17:49 Go to previous messageGo to next message
ricardojguzman  is currently offline ricardojguzman
Messages: 26
Registered: March 2010
Junior Member
NeoX wrote on Thu, 17 June 2010 17:41


The same is: a blank page??


No, not a blank page, just the same that was calling the apply.


EDIT

Hello NeoX

I'm currently migrating our project to linux, because of some issues we had with Sphinx. I'm going to reinstall the sfDoctrineApplyPlugin today I'll let you know if my issue persist.

[Updated on: Fri, 18 June 2010 17:08]

Re: Problems with sfDoctrineApplyPlugin [message #102248 is a reply to message #101143 ] Fri, 09 July 2010 11:58 Go to previous message
zuby  is currently offline zuby
Messages: 9
Registered: May 2010
Location: Lagos, Nigeria
Junior Member
ricardojguzman wrote on Thu, 17 June 2010 16:49

NeoX wrote on Thu, 17 June 2010 17:41


The same is: a blank page??


No, not a blank page, just the same that was calling the apply.





Hi Neox, am getting a blank page, but it was working before. Pleeeeeeeeeeeeeease any ideas???...its really going me crazy.
Previous Topic:A list plugin
Next Topic:Error in Doctrine_Search with CamelCase fields
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software