Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How does one use other providers on 'pages' #3

Closed
gyoza opened this issue Dec 20, 2014 · 8 comments
Closed

Question: How does one use other providers on 'pages' #3

gyoza opened this issue Dec 20, 2014 · 8 comments

Comments

@gyoza
Copy link

gyoza commented Dec 20, 2014

I am trying to use former and it does not appear to be working... I assumed that you would be putting the laravel code in the "modules" section but it does not appear to be working..

Also, just out of curiosity, why are all the pages stored in the database? Thanks, so far I think this project is wonderful!

Best Regards,
Gyoza.

@JVMartin
Copy link
Owner

Hey Gyoza!

This video should help you out:
https://www.youtube.com/watch?v=6iuZ8p-x5bY

In it, I'll show you how to cutomize pages so that you can first publish the views (blades) from the framework and then edit the template or add your own page blades by overriding the PageController. In those blades, you should be able to use former as normal!

So, you can either create pages in the database from the admin panel, or by overriding the PageController to load your own blades if you want that kind of control and don't need the client to be able to edit it from the admin panel.

I hope this video answers your questions! Feel free to respond to this thread with any further questions.

@gyoza
Copy link
Author

gyoza commented Dec 20, 2014

Awww yea thanks :)

Justin A. says hi. He pointed me at this project:) He says you type loud, in the video, it is proven.

@JVMartin
Copy link
Owner

Sure thing!

Oh man haha I wasn't aware of that! My microphone does sit right on top of my keyboard... :)

@JVMartin
Copy link
Owner

I should clarify one thing I said: the pages still have to exist in the database for the PageController's show() method to work properly, even if you're going to be using your own view/blade instead of the admin panel's HTML section. I may change this so that the database rows aren't required in the future.

@gyoza
Copy link
Author

gyoza commented Dec 22, 2014

Hey J,

Ran into an issue with former..
works -

{{Former::checkboxes('checkme')
      ->checkboxes('ffffffffffffffffirst', 'second', 'third', 'fourth')}}

Does not work,

{{Former::open()->rules(array('name' => 'required|max:20|alpha'))}}

no laravel errors in the laravel log as well. Any ideas?

(FYI, adding a Former::close() at the end causes laravel unexpected ; error)

@JVMartin
Copy link
Owner

I've never used Former before, but I can tell you with 100% confidence that Angel does not extend or modify any of Laravel's classes or other classes in the framework. It is simply a set of controllers and models, just plain vanilla Laravel usage. As such, anything that works in Laravel 4.1 will work just fine with Angel.

Perhaps your version of Former isn't compatible with Laravel 4.1? I may be updating Angel to work with Laravel 4.2 in the very near future, there were some issues with 4.2 still when I began development.

@Nimoi
Copy link

Nimoi commented Dec 23, 2014

@jacob - Do you think Laravel 4.2 is stable enough to upgrade? I haven't
tried it, but I wonder if there would be many issues.
On Dec 22, 2014 4:04 PM, "Jacob Martin" notifications@github.com wrote:

I've never used Former before, but I can tell you with 100% confidence
that Angel does not extend or modify any of Laravel's classes or other
classes in the framework. It is simply a set of controllers and models,
just plain vanilla Laravel usage. As such, anything that works in Laravel
4.1 will work just fine with Angel.

Perhaps your version of Former isn't compatible with Laravel 4.1?


Reply to this email directly or view it on GitHub
JVMartin/angel#3 (comment).

@JVMartin
Copy link
Owner

@Nimoi I'm rewriting one of my applications in 4.2 right now to familiarize myself with all the new traits and differences. It's far more stable now than it was when I started Angel, so I'll probably be updating Angel to use 4.2 in the next release! 🍰

@JVMartin JVMartin closed this as completed Jan 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants