We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Plugin Development Crash Course | Forum

Thabile
Thabile Sep 5 '13
I get the some errors after trying to work in the plugin development crash course.
"PAGE NOT FOUNDSorry, this document doesn't exist" 
on the Page Routing Topic
 I think the person who wrote the crash course is a very bad teacher. I have been coding with php for 6 years and I cant believe I get stuck like this. Maybe I'll write a better crash course ones I get this one right.


The worst thing is they create a contact-us plugin while another contact us page already exists. which duplicates the system. Thats a bad form of teaching 

Daisy Team
Daisy Sep 6 '13
Thabile, the crash course is just an example wich shows you the way the forms, components, controllers, etc work in our software. You can turn to it just to see the functions you can use to develop this or that functionality.

Anyway, if you think that some aspects should be corrected and rewritten in the crash course - please provide us with the list of the changes and we will consider all of them.


As for the problem - please answer the following questions:
What exactly are you trying to do?
What does your plugin suppose to do?
What step have you stuck on?

The more details you will provide - the more efficient my assistance will be.
Dhananjay Gupta
Dhananjay Gupta Dec 25 '13
Plugin Development Crash Course


I have followed the plugin Development crash course till the "Page Routing" sub-heading in the  tutorial 

 and checked on live oxwall website, but the contact page is not visible, I don't know why

 please check below link-

http://dgkashi.com/oxwall/contactus/contact/index



I had found this fourm thread by searching on google and I have exactly same problem

please check it


I am new to oxwall.




Thanks 

Dhananjay




Luiz
Luiz Jan 1 '14
Same here following the crash course.. it is not working ...



Arash
Arash Feb 26 '14
I'm following the crash course right now, and I have issues as well with exactly this. 

OW::getRouter()->addRoute(new OW_Route('contactus.index', 'contact', "CONTACTUS_CTRL_Contact", 'index'));

The name of the class and action (function) is way similar, so it's hard to make out what to put where.


So, I'm trying to understand what each of these things do. As I understand (and seen in other plugins) it is working like this:


OW::getRuoter(): Tells the systems Routher there is something going oun with the routing

->addRoute (new Ow Route): Here you go system, create a new route!


So what will the new route be? A bit tricky to understand. Where does the 'contactus.index' come from? 


As I get it it is a made-up name, just an internal name to keep track of the route within the system. You could actually use any name you want, as long as there is no other route with the same name, but the standard is that you give it the name of the plugin and then add the view or action name. But if you want to you could name it whatever you want. (is this a correct assumption by me?)


Then there is a the 'contact' part. What do we put in there?

Okay, here I'm guessing that you mean the shortened url, eg. http://yourdomain/{url} that is supposed to be defined. 


CONTACTUS_CTRL_Contact: is the controller, or class that is going to be used. The class should be within the ./pluginname/controllers/ folder and have te same name as the class within it.


index: is the defined action, in this case the function within the controller (class).


This is how I understand the line, but I'm quite shure I've missunderstood it, because I can't get it to work:P

The Forum post is edited by Arash Feb 26 '14
Daisy Team
Daisy Mar 6 '14
Arash, I suggest that you download our new Plugin Skeleton plugin to see how to use this or that function. Here is URL to the Store item: http://www.oxwall.org/store/item/695


If you are not familiar with the plugin development, it would be better for you to find a developer who can help you with it. Please visit our Oxwall Market (http://www.oxwall.org/market/specialists).
Arash
Arash Mar 7 '14
Thank you Daisy, but I didn't want to buy my apps, I wanted to do them myself. The issue is that there is not information and documentation about what the different uses of the parent classes can be used for, not even in the Plugin Skeleton. I understand that the support is given pritty muck out of good will, but when there is no where for the community to actually document, even the few bits and parts that you have figured out (you know, many small drops makes a river kind of a thing.


Yes, there are the doc pages, but I can't seem to find a signup page, and the email i sent to the person taking care of the docs hasen't responded.


There are quite a few questions I see here in the forum that probably could be solved once and for all with a open wiki or such.


Comming from a background making my own scrips, with no rules in how my code should look, behave as standard, intentions with it etc. I find it hard to manoeuvre a whole community-scritp without clear, simple and understandeble explenations. 

John Stanford
John Stanford Jun 11 '14
Page Not Found
Sorry, this document doesn't exist.

I get this error when trying to go to my development/production site.

URL: http://oxwall.mydomain.net/skeleton_

Thanks
John Stanford
John Stanford Jun 11 '14
I found the problem.

The problem is in the way oyu direct users to locate the files.

Telling them to go to "mysite.com/skeleton_" is incorrect.

A more proper example is "mysite.com/skeleton"

Thanks

Joey
Joey Jun 16 '14
The long term success of an open source software depends on the number of contributors it can get.If we have learnt anything from the wordpress community it is the fact that clear documentation and tutorials enable more developers to participate. Oxwall needs more tutorials in plugin development, this would take a lot of pressure from the core developers. A WIKI is a great idea and also some youtube tutorials would be great too.
Unus
Unus Mar 23 '16
I completely agree with Arash here. 

I am pretty much in the same spot and I do not see much support from Oxwall team either. 

instead I see a lot of "we do not do this, so hire a dev" 

ok, I understand you do not write custom code, but please provide the necessary information about how the system is designed and works so we the community can take it farther with small steps.

thank you
Quote from Arash Thank you Daisy, but I didn't want to buy my apps, I wanted to do them myself. The issue is that there is not information and documentation about what the different uses of the parent classes can be used for, not even in the Plugin Skeleton. I understand that the support is given pritty muck out of good will, but when there is no where for the community to actually document, even the few bits and parts that you have figured out (you know, many small drops makes a river kind of a thing.


Yes, there are the doc pages, but I can't seem to find a signup page, and the email i sent to the person taking care of the docs hasen't responded.


There are quite a few questions I see here in the forum that probably could be solved once and for all with a open wiki or such.


Comming from a background making my own scrips, with no rules in how my code should look, behave as standard, intentions with it etc. I find it hard to manoeuvre a whole community-scritp without clear, simple and understandeble explenations. 


Unus
Unus Mar 23 '16
100% agree. 

oxwall if you want a community then please help it out.

otherwise just spell it out clear you do not want a community to grow so people coming here will know what oxwall is all about from the beginning. 


Quote from Joey The long term success of an open source software depends on the number of contributors it can get.If we have learnt anything from the wordpress community it is the fact that clear documentation and tutorials enable more developers to participate. Oxwall needs more tutorials in plugin development, this would take a lot of pressure from the core developers. A WIKI is a great idea and also some youtube tutorials would be great too.

OW-Ghost
OW-Ghost Mar 23 '16
i was thinking start dev plugins but when read this its looks no easy to do it
Unus
Unus Mar 23 '16
Quote from Marcus i was thinking start dev plugins but when read this its looks no easy to do it
Marcus, please do not be discouraged, this platform needs guys like you that will at least try and provide feedback on what went well and what didn't. This way hopefully the oxwall team will do something about it.
Florent TETART
Florent TETART Jul 16 '16
Hello, I am trying the crash course and I have the same issue for testing the first route : "PAGE NOT FOUND Sorry, this document doesn't exist"
I can't understand why... I can imagine that some of you found the solution but nobody published it in this thread...
I tried to add a route in init.php, but oxwall doesn't care. Can someone help me ?
The tutorial seems so simple and 2 hours after I started I can't even print "Hello" on my first page : 404 NOT FOUND 404 NOT FOUND 404 NOT FOUND 404 NOT FOUND.
dave Leader
dave Jul 16 '16
The route has to be in a certain format, the class has to be upper and lower case..  Check out my videos here i do explain it. 


https://developers.oxwall.com/forum/topic/48472


you should watch both, but i think what you will find is in part 2